You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
Added the functionality transfer, similar to call, except with no data field.
Transfer is available to contract and to account.
Added tests to verify the transfer of balance (including zero and negatives to behave as expected).
Added a test that calls internal transaction for the transfer.
Added the functionality transfer, similar to call, except with no data field.
Transfer is available to contract and to account.
Added tests to verify the transfer of balance (including zero and negatives to behave as expected).
Added a test that calls internal transaction for the transfer.
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).
The text was updated successfully, but these errors were encountered: