Tests after making all explicit address conversions as non-payable

This commit is contained in:
hrkrshnn
2020-12-14 18:46:01 +01:00
parent f30c7cbac8
commit 7438c4dc16
26 changed files with 119 additions and 31 deletions
+1 -1
View File
@@ -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;