Skip to content

Commit

Permalink
fix: receive() public to receive() external
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <[email protected]>
  • Loading branch information
jsvisa committed Nov 4, 2024
1 parent 4b55dff commit 91f1830
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/2024-05/EXcommunity_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ contract ContractTest is Test {
}
}

receive() public payable {}
receive() external payable {}
fallback() external payable {}
}

Expand Down
3 changes: 2 additions & 1 deletion src/test/2024-05/Liquiditytokens_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ contract ContractTest is Test {
}
}

receive() public payable {}
receive() external payable {}
}

contract Money is Test {
Expand Down Expand Up @@ -189,4 +189,5 @@ contract Money is Test {
}

fallback() external payable {}
receive() external payable {}
}
2 changes: 1 addition & 1 deletion src/test/2024-05/MixedSwapRouter_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ contract ContractTest is Test {
}
}

receive() public payable {}
receive() external payable {}
}

contract Exploit is Test {
Expand Down

0 comments on commit 91f1830

Please sign in to comment.