web3-smart-contracts icon indicating copy to clipboard operation
web3-smart-contracts copied to clipboard

Update DutchAuction.sol

Open sadityakumar9211 opened this issue 3 years ago • 4 comments

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

  • [x] My PR follows the style guidelines of this project
  • [x] I have performed a self-check on my work

If changes are made in the code:

  • [x] I have followed the coding guidelines
  • [x] My changes in code generate no new warnings
  • [ ] My changes are breaking another fix/feature of the project
  • [ ] I have added test cases to show that my feature works
  • [ ] I have added relevant screenshots in my PR

sadityakumar9211 avatar Oct 29 '22 09:10 sadityakumar9211

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] avatar Oct 29 '22 09:10 github-actions[bot]

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

github-actions[bot] avatar Oct 29 '22 09:10 github-actions[bot]

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

github-actions[bot] avatar Oct 29 '22 09:10 github-actions[bot]

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

github-actions[bot] avatar Oct 29 '22 09:10 github-actions[bot]