-
Notifications
You must be signed in to change notification settings - Fork 744
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
Contracts: Refactor API to use WeightMeter #2943
Conversation
bot fmt |
@pgherveou |
bot cancel |
@pgherveou Command |
@athei added some quick cleanup here, can you take a look when you have a chance |
@athei completely missed your review here, will address the comments |
Update the Contracts API to use
WeightMeter
, as it simplifies the code and makes it easier to reason about, rather than taking a mutable weight or returning a tuple with the weight consumed