Closed tv-tran closed 2 years ago
how did you pass the value of the _inputs argument? it would be something like [{a: 1, b: 1}].
@qianbin I tried many ways but it doesn't work [{a: 1, b: 1}]: alert -> Unexpected token a in JSON at position 2
[{"a": "1", "b": "1"}]: result -> "reverted": true,
@tv-truong It's a bug in connex v1 implementation. I'll let you know once it's fixed. The right input should be:
JSON.stringify([{a:1, b:1}])
yourMethod.call([{a:1, b:1}])
@qianbin Thank you, I'm waiting for good news from you!
Fixed in thor-sync.electron v1.3.1
I tested a contract like the image below (testnet) then call the [set] method with connex, and they always return "reverted: true" can you show me how to call the above method?