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
Here is my question for simple:
I have two deploy script, let's say deployA and deployB, to deploy two contracts, let's say contractA, and contractB.
and the deployB.js will use contractA.
and a test script, use deployments.fixture respectively to test the deploy scripts.
describe("Test",()=>{before(asyncfunction(){});beforeEach(asyncfunction(){});it("DeployA",asyncfunction(){awaitdeployments.fixture(["deployA"]);});it("DeployB",asyncfunction(){letcontractA=awaitdeployments.getOrNull('contractA');console.log('here we get contractA '+(contrtactA!=null));awaitdeployments.fixture(["deployB"]);});});
The question is:
the output of test.js is:
have we get contractA true
the output of deployB.js is:
have we get contractA false
I'm just curious, why I can't get contractA in deployB.js. what's internal mechanism.
Of course, this is just a test, deploy work correctly when I deploy it.
The text was updated successfully, but these errors were encountered:
Here is my question for simple:
I have two deploy script, let's say deployA and deployB, to deploy two contracts, let's say contractA, and contractB.
and the deployB.js will use contractA.
and a test script, use deployments.fixture respectively to test the deploy scripts.
deployA.js:
deployB.js
test.js
The question is:
the output of test.js is:
the output of deployB.js is:
I'm just curious, why I can't get contractA in deployB.js. what's internal mechanism.
Of course, this is just a test, deploy work correctly when I deploy it.
The text was updated successfully, but these errors were encountered: