vechain / connex

The mono-repo contains libraries to help build dApps for VeChain.
https://docs.vechain.org/developer-resources/sdks-and-providers/connex
GNU Lesser General Public License v3.0
86 stars 3.64k forks source link

[ABIEncoderV2] Tuple input not working #91

Closed tv-tran closed 2 years ago

tv-tran commented 3 years ago

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?

image image

qianbin commented 3 years ago

how did you pass the value of the _inputs argument? it would be something like [{a: 1, b: 1}].

tv-tran commented 3 years ago

@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,

libotony commented 3 years ago

@tv-truong It's a bug in connex v1 implementation. I'll let you know once it's fixed. The right input should be:

tv-tran commented 3 years ago

@qianbin Thank you, I'm waiting for good news from you!

libotony commented 2 years ago

Fixed in thor-sync.electron v1.3.1