metafy-social / web3-smart-contracts

A repository of smart-contracts in the web3 space, all in a simple and collective space of hardhat for you to refer anytime
GNU General Public License v3.0
54 stars 45 forks source link

Update DutchAuction.sol #153

Open sadityakumar9211 opened 1 year ago

sadityakumar9211 commented 1 year ago

Description

Optimised the smart contract using the custom error with revert statements. This significantly reduces the gas cost in smart contract transactions. Give a summary of the change that you have made
I have modified the smart contract to use custom error with revert statements rather than using require statement with error strings which is significantly expensive compared to the former.

Developer's checklist

If changes are made in the code:

github-actions[bot] commented 1 year ago

Thank you for opening your first pull request in our repository, one of our maintainers will get in touch with you soon.

DO NOT FORGET TO ADD METAMASK WALLET ADDRESS IN THE AUTH FORM We at Metafy have some special rewards and swags for the top contributors in general repos and every contributor in web3 repos For being eligible for that, please authenticate yourself using this link: https://metafy.social/signup

Rewards : T-shirts & NFT ( for blockchain contributions )

Best of luck on your Contributions For further queries you can join our discord for support : https://discord.gg/W6PmEjjQsA

github-actions[bot] commented 1 year ago

PR is not linked to any issue, please make the corresponding changes in the body.

github-actions[bot] commented 1 year ago

PR is not linked to any issue, please make the corresponding changes in the body.

github-actions[bot] commented 1 year ago

PR is not linked to any issue, please make the corresponding changes in the body.