Skip to content

Commit

Permalink
Merge pull request #27 from axieinfinity/chore/fix-lib-native-transfe…
Browse files Browse the repository at this point in the history
…r-test

chore: fix lib native transfer test
  • Loading branch information
TuDo1403 authored Dec 11, 2023
2 parents d9060b4 + 2c1ef48 commit 57de895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/transfers/LibNativeTransfer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ contract LibNativeTransferTest is Test {
// Transferring to msg.sender can fail because it's possible to overflow their ETH balance as it begins non-zero.
if (recipient.code.length > 0 || uint256(uint160(recipient)) <= 18 || recipient == msg.sender) return;

amount = bound(amount, 0, address(this).balance);
amount = _bound(amount, 0, address(this).balance);
LibNativeTransfer.transfer(recipient, amount, gas);

assertEq(recipient.balance, amount);
Expand Down

0 comments on commit 57de895

Please sign in to comment.