Closed faisalramdan17 closed 2 years ago
Fixed now. Thank you for your contribution ser!
It's ok brother. anyway, is this package already support XRPL ? I want to try Dapp for XRPL. You can check this one : https://xrpl.org/docs.html
Thanks
No, this package only supports Ethereum web3 through Ethers.js.
Describe the bug A clear and concise description of what the bug is.
When Call contractERC20.transferFrom() get this one :
Error: EthersException: UNEXPECTED_ARGUMENT too many arguments: passed to contract
To Reproduce Steps to reproduce the behavior: I think I already put the true parameters like this one, but still get error :
Getting My Own Solution
So, I try to check your package sourecode in Github : https://github.com/y-pakorn/flutter_web3/blob/main/lib/src/ethers/utils.dart
Then, I get your wrong code :
So meanwhile, currently waiting for your fixes then I have used this code :
Expected behavior
I think you only need little bit fixed like :
Replace :
contract.send('transfer', [sender, recipient, amount.toString()]);
To be like this :
contract.send('transferFrom', [sender, recipient, amount.toString()]);
It is simple, right. Thanks so much for your awesome packages. It's very Helpfully. Because I'm creating Dapp for welcoming Meetaverse Indonesia in my country.