Use unchecked arithmetic in "_transfer", "_mint" and "_burn" (#3513)

This commit is contained in:
Paul Razvan Berg
2022-07-01 23:40:30 +03:00
committed by GitHub
parent 7a8f269457
commit 5fbf494511
2 changed files with 10 additions and 3 deletions

View File

@ -6,6 +6,7 @@
* `Address`: optimize `functionCall` by calling `functionCallWithValue` directly. ([#3468](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3468))
* `Address`: optimize `functionCall` functions by checking contract size only if there is no returned data. ([#3469](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3469))
* `GovernorCompatibilityBravo`: remove unused `using` statements ([#3506](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3506))
* `ERC20`: optimize `_transfer`, `_mint` and `_burn` by using `unchecked` arithmetic when possible. ([#3513](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3513))
## 4.7.0 (2022-06-29)