Port to Solidity 0.8.21 passes 3 tests

This commit is contained in:
7400
2023-10-25 08:14:19 -07:00
parent 72cbdbc2fd
commit 499782828a
28 changed files with 63 additions and 36 deletions

View File

@@ -1,5 +1,6 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.7.6;
//pragma solidity =0.7.6;
pragma solidity >=0.8.0;
pragma abicoder v2;
import "./Constants.sol";
@@ -31,7 +32,7 @@ contract Vault {
}
function withdraw(uint256 amount) public {
_withdrawNative(msg.sender, amount);
_withdrawNative(payable(msg.sender), amount);
}
function withdrawTo(address payable recipient, uint256 amount) public {