
smart-contracts
What’s new in v5.1 of OpenZeppelin ?
OpenZeppelin recently announced changes in the upcoming version 5.1. Here are few imperative changes around Governance and ERC20. Governance Related Changes GovernorCountingSimple- The _countVotes function now returns uint256 . Previously the _countVotes function looked something like this: function _countVote( uint256 proposalId, address account, uint8 support, uint256 weight, bytes memory // params