mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Tests after making all explicit address conversions as non-payable
This commit is contained in:
@@ -438,7 +438,7 @@ operations as long as there is enough gas passed on to it.
|
||||
// results in test.x becoming == 1 and test.y becoming 1.
|
||||
|
||||
// If someone sends Ether to that contract, the receive function in TestPayable will be called.
|
||||
require(address(test).send(2 ether));
|
||||
require(payable(test).send(2 ether));
|
||||
// results in test.x becoming == 2 and test.y becoming 2 ether.
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user