Skip to content

Commit 2685513

Browse files
committed
testing adjustments
1 parent fcfe6d2 commit 2685513

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

cli/src/getSigner.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as myEvmSigner from "./evmsigner.js";
33
import { ChainContext, Wormhole, chainToPlatform, type Chain, type ChainAddress, type Network, type Signer } from "@wormhole-foundation/sdk";
44
import { Keypair } from "@solana/web3.js";
55
import fs from "fs";
6+
import { encoding } from '@wormhole-foundation/sdk-connect';
67

78
export type SignerType = "privateKey" | "ledger";
89

@@ -50,13 +51,10 @@ export async function getSigner<N extends Network, C extends Chain>(
5051
switch (type) {
5152
case "privateKey":
5253
let privateKey: string;
53-
console.log(filePath);
54-
console.log(process.env.SOLANA_PRIVATE_KEY);
55-
//TODO: this should be not the private key, but the keypair
5654
if (filePath) {
5755
// Read the private key from the file if filePath is provided
5856
const keyPair = Keypair.fromSecretKey(new Uint8Array(JSON.parse(fs.readFileSync(filePath, 'utf8'))));
59-
privateKey = keyPair.secretKey.toString();
57+
privateKey = encoding.b58.encode(keyPair.secretKey);
6058
} else {
6159
const privateKeySource = source ?? process.env.SOLANA_PRIVATE_KEY;
6260
if (privateKeySource === undefined) {

cli/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,6 @@ yargs(hideBin(process.argv))
589589
const deps: Partial<{ [C in Chain]: Deployment<Chain> }> = await pullDeployments(deployments, network, verbose);
590590
const signerType = argv["signer-type"] as SignerType;
591591
const payerPath = argv["payer"] === false ? undefined : argv["payer"];
592-
console.log(payerPath);
593592

594593
const missing = await missingConfigs(deps, verbose);
595594

@@ -1137,6 +1136,7 @@ async function deploySolana<N extends Network, C extends SolanaChains>(
11371136
binary = `${pwd}/solana/target/deploy/example_native_token_transfers.so`;
11381137
}
11391138

1139+
11401140
await checkSolanaBinary(binary, wormhole, providedProgramId)
11411141

11421142
// do the actual deployment

0 commit comments

Comments
 (0)