The format of ["1000000000000000000","1000000000000000000"] should be [1000000000000000000,1000000000000000000]. Does your contract on XDC chain has enough XDC coin to pay out?
I deployed your contract to xdc2e78f2ACd8A5CA6dD5B0B8Fb502E3ea160E54C00. And I can execute function disperseXdc with parameters ["0x48800ede4Be8DabAFDCD4bdb05b099dB2b236846","0x796c0E3A2e78a699502a35a65f9734a355210036"] and [1000000000000000000,1000000000000000000] successfully. The transaction is explorer.apothem.network/tx/0x4ce6... .
I add a function receive() external payable {} in contract HummingbotMinerPayouts. And deployed it at xdc2e78f2ACd8A5CA6dD5B0B8Fb502E3ea160E54C00. Then transfer 100 XDC to this contract. At last call function disperseXdc with parameters ["0x48800ede4Be8DabAFDCD4bdb05b099dB2b236846","0x796c0E3A2e78a699502a35a65f9734a355210036"] and [1000000000000000000,1000000000000000000] successfully. You can check balance of xdc48800ede4Be8DabAFDCD4bdb05b099dB2b236846 and xdc796c0E3A2e78a699502a35a65f9734a355210036. Please check transaction explorer.apothem.network/txs/0x4ce... also.
We hope that the above issue is resolved, if the issue is still persist then please let us know about it so that the team can resolve it on priority. It will be grateful to get an update within 72 hours or else it will be considered resolved.
The format of ["1000000000000000000","1000000000000000000"] should be [1000000000000000000,1000000000000000000]. Does your contract on XDC chain has enough XDC coin to pay out?
I deployed your contract to
xdc2e78f2ACd8A5CA6dD5B0B8Fb502E3ea160E54C00
. And I can execute function disperseXdc with parameters["0x48800ede4Be8DabAFDCD4bdb05b099dB2b236846","0x796c0E3A2e78a699502a35a65f9734a355210036"]
and[1000000000000000000,1000000000000000000]
successfully. The transaction is explorer.apothem.network/tx/0x4ce6... .how did you make it work? I tried it on my end it still fails, I'm using remix.xinfin.network
I use remix deploy contract, and call function disperseXdc.
I'm using remix.xinfin.network or should I use remix.ethereum.org/?
I use
https://remix.ethereum.org/
with RPChttps://erpc.apothem.network/
Hi have you tried sending some XDC instead of 0? still getting tmap error even after changing the format
Should add function receive() into contract, so contract can receive ethers, then contract can transfer ethers to other accounts.
I add a function
receive() external payable {}
in contractHummingbotMinerPayouts
. And deployed it atxdc2e78f2ACd8A5CA6dD5B0B8Fb502E3ea160E54C00
. Then transfer 100 XDC to this contract. At last call functiondisperseXdc
with parameters["0x48800ede4Be8DabAFDCD4bdb05b099dB2b236846","0x796c0E3A2e78a699502a35a65f9734a355210036"]
and[1000000000000000000,1000000000000000000]
successfully. You can check balance ofxdc48800ede4Be8DabAFDCD4bdb05b099dB2b236846
andxdc796c0E3A2e78a699502a35a65f9734a355210036
. Please check transaction explorer.apothem.network/txs/0x4ce... also.thanks will try this
We hope that the above issue is resolved, if the issue is still persist then please let us know about it so that the team can resolve it on priority. It will be grateful to get an update within 72 hours or else it will be considered resolved.
it working now.. thanks!! BTW do you think is it possible to use the XDC from the contract sender instead of transferring the tokens to contract?
This depends your business requirements. Maybe WXDC is more convenient than XDC.