defi-wonderland / smock

The Solidity mocking library
MIT License
319 stars 40 forks source link

fix: delegated calls support #132

Closed 0xGorilla closed 2 years ago

0xGorilla commented 2 years ago

Description Fixes #131

Canary version: 0.0.0-9be6e836

hickscorp commented 2 years ago

FWIW: I've gone through this PR, but I've also tested it using a companion project located right here.

The sample project exhibits how to use Smock along with the Diamond pattern to test that facets are being called. It also uses hardhat-deploy fixtures to make sure that both modes function properly.