Issue created by JunhanHu-aion (on Monday Sep 17, 2018 at 15:32 GMT)
Solidity supports the following functionality:
<address payable>.transfer(uint256 amount):\
send given amount of Wei to Address, throws on failure, forwards 2300 gas stipend, not adjustable
<address payable>.send(uint256 amount) returns (bool):\
send given amount of Wei to Address, returns false on failure, forwards 2300 gas stipend, not adjustable
We may want to support something similar in BlockchainRuntime so user can transfer native Aion with their Dapp easliy. Currently native Aion transfer within AVM are done by passing it as value parameter to call() (Solidity support that as well).
Issue created by JunhanHu-aion (on Monday Sep 17, 2018 at 15:32 GMT)
Solidity supports the following functionality:
<address payable>.transfer(uint256 amount):
\ send given amount of Wei to Address, throws on failure, forwards 2300 gas stipend, not adjustable<address payable>.send(uint256 amount) returns (bool):
\ send given amount of Wei to Address, returns false on failure, forwards 2300 gas stipend, not adjustableWe may want to support something similar in BlockchainRuntime so user can transfer native Aion with their Dapp easliy. Currently native Aion transfer within AVM are done by passing it as value parameter to call() (Solidity support that as well).