Skip to content

Remove unnecessary receive() in Escrow.sol#514

Open
huahuayu wants to merge 1 commit intoFastLane-Labs:mainfrom
huahuayu:fix/remove-receive-escrow-v2
Open

Remove unnecessary receive() in Escrow.sol#514
huahuayu wants to merge 1 commit intoFastLane-Labs:mainfrom
huahuayu:fix/remove-receive-escrow-v2

Conversation

@huahuayu
Copy link

@huahuayu huahuayu commented Feb 2, 2026

Fixes #506. The receive() function in Escrow.sol is not needed as all legitimate transfers are handled via payable functions. Removing it reduces the risk of users accidentally sending ETH directly to the contract and having it stuck.

@huahuayu huahuayu force-pushed the fix/remove-receive-escrow-v2 branch from 76bc4d8 to 6335382 Compare February 7, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove receive() function in Escrow.sol

1 participant

Comments