Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add for uint storageguards #62

Open
wants to merge 3 commits into
base: stylus
Choose a base branch
from

Conversation

prestwich
Copy link

Adds an add implementation to &mut MutStorageGuard to allow for direct addition

Goal is to allow this in contracts


self.balance_mapping.setter(sender_address) += U256::from(10000);

This is untested.

@cla-bot
Copy link

cla-bot bot commented Sep 12, 2023

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please sign the linked documents below to get yourself added. https://na3.docusign.net/Member/PowerFormSigning.aspx?PowerFormId=b15c81cc-b5ea-42a6-9107-3992526f2898&env=na3&acct=6e152afc-6284-44af-a4c1-d8ef291db402&v=2

@qalisander
Copy link

I think that SubAssign, MulAssign, DivAssign should be added also.

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.

3 participants