Closed Vourhey closed 5 years ago
Robonomics_comm v1.1.0
I try to publish Demand message as usual
pub = rospy.Publisher('/liability/infochan/eth/signing/demand', Demand, queue_size=128) demand = Demand() demand.model = Multihash(MODEL) demand.objective = Multihash(objective) demand.token = Address(TOKEN) demand.cost = UInt256(str(cost)) demand.lighthouse = Address(LIGHTHOUSE) demand.validator = Address(VALIDATOR) demand.validatorFee = UInt256('0') demand.deadline = UInt256() demand.deadline.uint256 = make_deadline() pub.publish(demand)
And I get an error from the stack:
[ERROR] [1569861414.261659]: Fields of demand message model: multihash: "QmbpGnAyjNeNabUg8gaxTUKDPcozCRDd2JaVck7uHXDu9g" objective: multihash: "QmRee9dXnpQ8a9cc5XxHATdUSohYqeGfZiufkvdrxjxv6r" token: address: "0x15bb868397d03Aab342db7d0bb2D3A83336699c1" cost: uint256: "10000000000000" lighthouse: address: "0x202a09A451DE674d2d65Bf1C90968a8d8F72cf7b" validator: address: "0x0000000000000000000000000000000000000000" validatorFee: uint256: "0" deadline: uint256: "410909" sender: address: "0x185d6DE7c6F6b63b935C6316f2a079f5B9bB0fF3" nonce: uint256: '' signature: [] is not correct. Exception is expected int for dictionary value @ data['nonce'] [ERROR] [1569861414.291961]: Signing demand error: msg model: multihash: "QmbpGnAyjNeNabUg8gaxTUKDPcozCRDd2JaVck7uHXDu9g" objective: multihash: "QmRee9dXnpQ8a9cc5XxHATdUSohYqeGfZiufkvdrxjxv6r" token: address: "0x15bb868397d03Aab342db7d0bb2D3A83336699c1" cost: uint256: "10000000000000" lighthouse: address: "0x202a09A451DE674d2d65Bf1C90968a8d8F72cf7b" validator: address: "0x0000000000000000000000000000000000000000" validatorFee: uint256: "0" deadline: uint256: "410909" sender: address: "0x185d6DE7c6F6b63b935C6316f2a079f5B9bB0fF3" nonce: uint256: '' signature: [] is not valid Demand message
Obviously there's no nonce in my message, but that's stack's job
If I add demand.nonce = UInt256('0') then everything works fine
demand.nonce = UInt256('0')
Robonomics_comm v1.1.0
I try to publish Demand message as usual
And I get an error from the stack:
Obviously there's no nonce in my message, but that's stack's job