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:
Kian 2023-02-09 18:03:45 -08:00 committed by GitHub
parent 4e950db56e
commit b40e81bf3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -27,6 +27,6 @@ contract Selfdestruct {
/* Self-destructs */
function destruct() public {
selfdestruct(address(this));
selfdestruct(payable(this));
}
}

View File

@ -7,7 +7,7 @@ contract selfDestructor {
}
function selfDestruct() public {
address payable nil = address(0);
address payable nil = payable(0);
selfdestruct(nil);
}
}