Skip to content

Commit

Permalink
TASK_TEST_SETUP_TEST_ENVIRONMENT has no return
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Dec 19, 2024
1 parent 07844bf commit d7dd3c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardhat/common-contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const INSTANCES = {
};

task(TASK_TEST_SETUP_TEST_ENVIRONMENT).setAction((_, env, runSuper) =>
runSuper().then(result =>
runSuper().then(() =>
Promise.all(
Object.entries(INSTANCES).map(([name, { address, abi, bytecode }]) =>
setCode(address, '0x' + bytecode.replace(/0x/, ''))
Expand All @@ -28,6 +28,6 @@ task(TASK_TEST_SETUP_TEST_ENVIRONMENT).setAction((_, env, runSuper) =>
),
)
.then(namedInstances => Object.assign(env, ...namedInstances))
.then(() => result),
.then(() => {}),
),
);

0 comments on commit d7dd3c5

Please sign in to comment.