Closed folex closed 3 months ago
ETH RPC cannot process the call when DealId is used as an address without 0x
Failed host call "connector" "register_worker" ["7c6a93cdd24c98b07bc542cca7e1ec9e32f1b948","12D3KooWRq9mP27DmStaeduALdCE9exJS3x8Y3ikbESH8vasXNeY",["0b7ff07ad2cee1dc9a718991110f29745f597805ebb3b7aa22dd717f6e711c0d"]] (20ms 323us 348ns): "Failed to register worker: RPC call error: code: -32602, message: invalid argument 0: json: cannot unmarshal hex string without 0x prefix into Go struct field TransactionArgs.to of type common.Address, data:
Gotta prefix addresses with 0x
Use DealId::to_address()
DealId::to_address()
Description
ETH RPC cannot process the call when DealId is used as an address without 0x
Motivation
Gotta prefix addresses with 0x
Proposed Changes
Use
DealId::to_address()
Checklist
Reviewer Checklist