Skip to content

Commit f1121da

Browse files
committed
test: do not load testnode accounts on module import
1 parent d6aa0f2 commit f1121da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/createTokenBridge-testHelpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { promisify } from 'util';
55
import { getNitroTestnodePrivateKeyAccounts } from './testHelpers';
66

77
const execPromise = promisify(exec);
8-
const testnodeAccounts = getNitroTestnodePrivateKeyAccounts();
98

109
export async function deployTokenBridgeCreator({
1110
publicClient,
@@ -14,11 +13,12 @@ export async function deployTokenBridgeCreator({
1413
}): Promise<Address> {
1514
// https://github.com/OffchainLabs/token-bridge-contracts/blob/main/scripts/local-deployment/deployCreatorAndCreateTokenBridge.ts#L109C19-L109C61
1615
const weth = '0x05EcEffc7CBA4e43a410340E849052AD43815aCA';
16+
const { deployer } = getNitroTestnodePrivateKeyAccounts();
1717

1818
const { stdout } = await execPromise(`
1919
docker run --rm --net=host \
2020
-e BASECHAIN_RPC=${publicClient.transport.url} \
21-
-e BASECHAIN_DEPLOYER_KEY=${testnodeAccounts.deployer.privateKey} \
21+
-e BASECHAIN_DEPLOYER_KEY=${deployer.privateKey} \
2222
-e BASECHAIN_WETH=${weth} \
2323
-e GAS_LIMIT_FOR_L2_FACTORY_DEPLOYMENT=10000000 \
2424
$(docker build -q token-bridge-contracts) deploy:token-bridge-creator`);

0 commit comments

Comments
 (0)