drink icon indicating copy to clipboard operation
drink copied to clipboard

feat(revive): alternative approach to intercept contract calls

Open chungquantin opened this issue 8 months ago • 0 comments

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-revive is 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

chungquantin avatar May 08 '25 06:05 chungquantin