mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
Fix 'make bindings' (#6824)
Solidity 0.8.0 breaks the current use of `payable` in these test contracts, resulting in errors like ``` Error: Type address is not implicitly convertible to expected type address payable. --> selfDestructor.sol:10:9: | 10 | address payable nil = address(0); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` Related to #6680
This commit is contained in:
parent
4e950db56e
commit
b40e81bf3a
@ -27,6 +27,6 @@ contract Selfdestruct {
|
||||
|
||||
/* Self-destructs */
|
||||
function destruct() public {
|
||||
selfdestruct(address(this));
|
||||
selfdestruct(payable(this));
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ contract selfDestructor {
|
||||
}
|
||||
|
||||
function selfDestruct() public {
|
||||
address payable nil = address(0);
|
||||
address payable nil = payable(0);
|
||||
selfdestruct(nil);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user