simolus3/web3dart

How to decodeParameters

FZ985 opened this issue · 0 comments

FZ985 commented

like js:
web3.eth.abi.decodeParameters(['string', 'uint256'], '0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000ea000000000000000000000000000000000000000000000000000000000000000848656c6c6f212521000000000000000000000000000000000000000000000000');

Result { '0': 'Hello!%!', '1': '234' }