Wrap an existing provider into one that will return a fixed getCode result for items defined in codeCache.
The cache is treated as read-only, it will not be updated. Mainly used to avoid an extra RPC call when we already have the bytcode.
For more advanced behaviours, consider copying this code and modifying it to your needs.
Wrap an existing provider into one that will return a fixed getCode result for items defined in codeCache. The cache is treated as read-only, it will not be updated. Mainly used to avoid an extra RPC call when we already have the bytcode.
For more advanced behaviours, consider copying this code and modifying it to your needs.