From 91c99161d134e6d50f848a3a07a25c6e882b1613 Mon Sep 17 00:00:00 2001 From: daoauth <57783762+daoauth@users.noreply.github.com> Date: Wed, 24 Apr 2024 13:53:21 +0900 Subject: [PATCH] Update helpers.ts --- examples/src/helpers/helpers.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/src/helpers/helpers.ts b/examples/src/helpers/helpers.ts index d8fa4dc9a..12dd28d8b 100644 --- a/examples/src/helpers/helpers.ts +++ b/examples/src/helpers/helpers.ts @@ -18,6 +18,7 @@ import cosmwasm from "../../../sdk/dist/esm/platforms/cosmwasm.js"; import evm from "../../../sdk/dist/esm/platforms/evm.js"; import solana from "../../../sdk/dist/esm/platforms/solana.js"; import sui from "../../../sdk/dist/esm/platforms/sui.js"; +import aptos from "../../../sdk/dist/esm/platforms/aptos.js"; // Use .env.example as a template for your .env file and populate it with secrets // for funded accounts on the relevant chain+network combos to run the example @@ -64,7 +65,10 @@ export async function getSigner( signer = await algorand.getSigner(await chain.getRpc(), getEnv("ALGORAND_MNEMONIC")); break; case "Sui": - signer = await sui.getSigner(await chain.getRpc(), getEnv("SUI_PRIVATE_KEY")); + signer = await sui.getSigner(await chain.getRpc(), getEnv("SUI_MNEMONIC")); + break; + case "Aptos": + signer = await aptos.getSigner(await chain.getRpc(), getEnv("APTOS_PRIVATE_KEY")); break; default: throw new Error("Unrecognized platform: " + platform);