Skip to content

Commit

Permalink
fix: pass in env rpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
anondev2323 committed Sep 8, 2023
1 parent e78efab commit d214bb3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wormhole-connect/src/utils/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ import {
} from '@wormhole-foundation/wormhole-connect-sdk';

import { getWrappedTokenId } from '.';
import { ENV, TOKENS, sdkConfig } from '../config';
import { ENV, RPCS, TOKENS, sdkConfig } from '../config';

export enum PayloadType {
Manual = 1,
Automatic = 3,
}

export const wh: WormholeContext = new WormholeContext(
ENV as Environment,
sdkConfig,
);
export const wh: WormholeContext = new WormholeContext(ENV as Environment, {
...sdkConfig,
...{ rpcs: RPCS },
});

export interface ParsedMessage {
sendTx: string;
Expand Down

0 comments on commit d214bb3

Please sign in to comment.