openzeppelin-contracts icon indicating copy to clipboard operation
openzeppelin-contracts copied to clipboard

Add combined update and get functions to the Counters library

Open elawbek opened this issue 3 years ago • 2 comments

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

elawbek avatar Sep 27 '22 20:09 elawbek

May I ask what else is required of me?

elawbek avatar Sep 28 '22 17:09 elawbek

@elawbek Hopefully nothing else. We will let you know otherwise. Thanks!

frangio avatar Sep 29 '22 22:09 frangio

Sorry this never got merged. We ended up removing Counters in 5.0 so this needs to be closed now.

frangio avatar Jul 06 '23 03:07 frangio