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

Return chi from pot.drip() #89

Closed
epheph opened this issue Nov 2, 2019 · 1 comment
Closed

Return chi from pot.drip() #89

epheph opened this issue Nov 2, 2019 · 1 comment

Comments

@epheph
Copy link

epheph commented Nov 2, 2019

Related to #87 (potentially incompatible with)

If you already have the pot's chi variable loaded from storage, it is worthwhile to return that value. Many (most?) external callers are likely to need that value immediately after calling pot.drip() (and will need to get that value in a subsequent call). Returning the data already loaded from storage would cost very little gas, a secondary call will cost ~2,000 gas

@epheph
Copy link
Author

epheph commented Nov 7, 2019

Nice! 👍

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

No branches or pull requests

2 participants