scroll-tech / scroll-contract-deploy-demo

This project demonstrates how to use hardhat or foundry to deploy a contract to Scroll's zkEVM rollup
https://scroll.io
MIT License
514 stars 304 forks source link

Fallback function - contracts/Lock.sol #34

Open DevDevoted opened 4 months ago

DevDevoted commented 4 months ago

Probably should consider adding a fallback function, thus rejecting any eth sent directly to the contract:

receive() external payable { revert("This contract does not accept Ether directly"); }