simolus3 / web3dart

Ethereum library, written in Dart.
MIT License
441 stars 270 forks source link

How to decodeParameters #220

Open FZ985 opened 2 years ago

FZ985 commented 2 years ago

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

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