This is a mimimal template for Diamonds which allows facet selectors to be generated on the go in solidity tests!
- Clone this repo
- Install dependencies
$ yarn && forge update$ npx hardhat compile$ npx hardhat run scripts/deploy.js$ forge tNote: A lot of improvements are still needed so contributions are welcome!!
Bonus: The DiamondLoupefacet uses an updated LibDiamond which utilises solidity custom errors to make debugging easier especially when upgrading diamonds. Take it for a spin!!
Need some more clarity? message me on twitter, Or join the EIP-2535 Diamonds Discord server