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);