Skip to content

Commit 9f97c86

Browse files
solana scripts: fix loadenv import
1 parent 1848c3d commit 9f97c86

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

solana/ts/scripts/env.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function getGovernanceVaa(): GovernanceVaa {
114114
return loadScriptConfig("governance-vaa");
115115
}
116116

117-
function loadScriptConfig(filename: string): any {
117+
export function loadScriptConfig(filename: string): any {
118118
const configFile = fs.readFileSync(
119119
`./ts/scripts/config/${env}/${filename}.json`
120120
);

solana/ts/scripts/executeConvernanceVaas.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ import {
88
connection,
99
getSigner,
1010
getProgramAddresses,
11-
getGovernanceVaa,
11+
loadScriptConfig,
1212
} from "./env";
1313
import { addLedgerSignature, ledgerSignAndSend } from "./helpers";
1414
import { postVaaSolana } from "@certusone/wormhole-sdk";
1515
import { NTTGovernance } from "../sdk/governance";
16-
import { loadScriptConfig } from '../../../evm/ts-scripts/src/env';
1716

1817
const governanceVaasFileName = process.env.GOVERNANCE_VAAS_FILE_PATH;
1918
if (!governanceVaasFileName) {

0 commit comments

Comments
 (0)