Skip to content

Commit

Permalink
bugfix in test for Testnet and Mainnet (#3123)
Browse files Browse the repository at this point in the history
  • Loading branch information
derpy-duck authored Jun 26, 2023
1 parent bbf5870 commit 632a767
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions sdk/js/src/relayer/__tests__/wormhole_relayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ const optionalParams = {
sourceChainProvider: source.provider,
targetChainProviders: myMap,
};
const optionalParamsTarget = {
environment: network,
sourceChainProvider: target.provider,
targetChainProviders: myMap,
};

// for signing wormhole messages
const guardians = new MockGuardians(GUARDIAN_SET_INDEX, GUARDIAN_KEYS);
Expand Down Expand Up @@ -171,7 +176,7 @@ const testForward = async (
targetChain,
sourceChain,
notEnoughExtraForwardingValue ? TOO_LOW_GAS_LIMIT : REASONABLE_GAS_LIMIT,
optionalParams
optionalParamsTarget
);
const value = await relayer.getPrice(
sourceChain,
Expand Down Expand Up @@ -291,13 +296,13 @@ describe("Wormhole Relayer Tests", () => {
targetChain,
sourceChain,
REASONABLE_GAS_LIMIT,
optionalParams
optionalParamsTarget
);
const valueNeededOnTargetChain2 = await relayer.getPrice(
targetChain,
targetChain,
REASONABLE_GAS_LIMIT,
optionalParams
optionalParamsTarget
);

const value = await relayer.getPrice(
Expand Down

0 comments on commit 632a767

Please sign in to comment.