2

Two uint works, two strings works, but as soon as the struct is a uint and a string I get

"could not decode output. did you specify the wrong function return data type perhaps?"

The command: cast call 0x5FbDB2315678aeecb367f032d93F642f64180aa3 "getTestStruct()(uint,string)"

1 Answer 1

0

To get the output decoded properly, you need to wrap the output in another set of parentheses.

cast call 0x5FbDB2315678aeecb367f032d93F642f64180aa3 "getTestStruct()((uint,string))"

Hope it helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.