drink
drink copied to clipboard
feat(revive): alternative approach to intercept contract calls
With the new changes in pallet-revive that removes the type Debug which allows to intercept contract calls, the MockingAPI feature is now breaking and needs an alternative approach. See #143
The only possible way that I can think of is to add mocking feature in ink_sandbox instead of the drink library. Because:
- Making changes to
pallet-reviveis unlikely to be merged. - It is unable to implement it in drink, because we want the calls to be sent via ink contract and intercepted there. See https://github.com/use-ink/drink/blob/main/examples/mocking/lib.rs#L28