Skip to content

Commit 2249ad2

Browse files
authored
Update helpers.ts (#496)
1 parent aec1ac4 commit 2249ad2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/src/helpers/helpers.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import cosmwasm from "../../../sdk/dist/esm/platforms/cosmwasm.js";
2121
import evm from "../../../sdk/dist/esm/platforms/evm.js";
2222
import solana from "../../../sdk/dist/esm/platforms/solana.js";
2323
import sui from "../../../sdk/dist/esm/platforms/sui.js";
24+
import aptos from "../../../sdk/dist/esm/platforms/aptos.js";
2425

2526
// Use .env.example as a template for your .env file and populate it with secrets
2627
// for funded accounts on the relevant chain+network combos to run the example
@@ -85,7 +86,10 @@ export async function getSigner<N extends Network, C extends Chain>(
8586
signer = await algorand.getSigner(await chain.getRpc(), getEnv("ALGORAND_MNEMONIC"));
8687
break;
8788
case "Sui":
88-
signer = await sui.getSigner(await chain.getRpc(), getEnv("SUI_PRIVATE_KEY"));
89+
signer = await sui.getSigner(await chain.getRpc(), getEnv("SUI_MNEMONIC"));
90+
break;
91+
case "Aptos":
92+
signer = await aptos.getSigner(await chain.getRpc(), getEnv("APTOS_PRIVATE_KEY"));
8993
break;
9094
default:
9195
throw new Error("Unrecognized platform: " + platform);

0 commit comments

Comments
 (0)