openzeppelin-contracts
openzeppelin-contracts copied to clipboard
Add combined update and get functions to the Counters library
Fixes #2786
Functions have been added to the Counters library that return the previous/next counter value and increment/decrement it in the storage by one.
PR Checklist
- [x] Tests
- [ ] Documentation
- [x] Changelog entry
May I ask what else is required of me?
@elawbek Hopefully nothing else. We will let you know otherwise. Thanks!
Sorry this never got merged. We ended up removing Counters in 5.0 so this needs to be closed now.