You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it("test 1",async()=>{constfake=awaitsmock.fake("contractExample",{address: contractExample.address})expect(fake.execute).has.been.calledWith(1);// Works great})it("test 2",async()=>{awaitcontractExample.getAction();})
Problem is that I deploy contractExample in before hook, only one time. in test1, I replace it with fake, but in test2, I need the original one, because await contractExample.getAction(); returns 0x...0, since it became a fake. How can I reset it in test1, so on contractExample.address, even in test 2, we got fake, and I need original.
How can I achieve it ?
The text was updated successfully, but these errors were encountered:
Problem is that I deploy
contractExample
inbefore
hook, only one time. intest1
, I replace it with fake, but intest2
, I need the original one, becauseawait contractExample.getAction();
returns0x...0
, since it became a fake. How can I reset it intest1
, so oncontractExample.address
, even intest 2
, we got fake, and I need original.How can I achieve it ?
The text was updated successfully, but these errors were encountered: