OpenZeppelin / cairo-contracts

OpenZeppelin Contracts written in Cairo for Starknet, a decentralized ZK Rollup
https://docs.openzeppelin.com/contracts-cairo
MIT License
797 stars 320 forks source link

Simplify hook impl in erc20_votes mock #1015

Open andrew-fleming opened 1 week ago

andrew-fleming commented 1 week ago

We can simplify the hooks implementation by passing in the mock's ContractState instead of the component's state. See the examples in Extending Contracts with Hooks