I marshal a struct locally, and then send the marshaled data to ethereum geth client. But when i unmarshal it in geth , i always meet a log15 error. I have explored it for a long time, but didn't figure out the reason.

the error is ".Normalized odd number of arguments by adding nil"---->"json: cannot unmarshal non-string into Go struct field Filterinput.ContractAddress of type common.Address" I checked the msg.data received in geth, which is the same as the data marshaled locally. I copied it and unmarshal it locally , it works well. But returning a error when unmarshalling in geth i don't know what the log15 is focus on and how to address this problem. Please give me some advice, thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.