WalletConnect / WalletConnectFlutterV2

WalletConnect v2 client made in Dart for Flutter.
https://pub.dev/packages/walletconnect_flutter_v2
Apache License 2.0
117 stars 61 forks source link

requestReadContract function just return first value from list #278

Closed afdaldev closed 8 months ago

afdaldev commented 8 months ago

Describe the bug I try to read smart contract with requestReadContract,, for single value response is good.. but, for multiple value i just get response 1 value

Expected behavior my expectation return list of value => [maxCap,lockedPeriod,apy ,rewardPercent,totalStaked] My ABI: "name": "pools", "outputs": [ {"internalType": "uint256", "name": "maxCap", "type": "uint256"}, {"internalType": "uint256", "name": "lockedPeriod", "type": "uint256"}, {"internalType": "uint256", "name": "apy", "type": "uint256"}, {"internalType": "uint256", "name": "rewardPercent", "type": "uint256"}, {"internalType": "uint256", "name": "totalStaked", "type": "uint256"} ],

Actual behavior I just get single response => result: 10000000000000000000000000 (value of maxCap)

Web3ModalFlutter

quetool commented 8 months ago

Closing this issue in favor of the ongoing discussion => https://github.com/WalletConnect/Web3ModalFlutter/issues/99