Interface / Abi question (Rust Tests)

Let’s assume I have two identical counter contracts:

  • CounterA
  • MockCounterA

One lives in a git repo (CounterA) and the other lives locally (MockCounterA)

If I create a contract (ConsumesCounter) that imports the interface of ContractA from git and has a setter for the ContractID

Then in the tests, I deploy locally MockCounterA, and set the ContractID to point to MockCounterA in ConsumesCounter

Will the rust tests work?

Both CounterA and MockCounterA are identical in abi and storage names

Hey @diyahir did you get to try the question?

As per your tests, you are doing the tests on MockCounterA and ConsumesCounter both of which are being run locally right?