File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import cosmwasm from "../../../sdk/dist/esm/platforms/cosmwasm.js";
21
21
import evm from "../../../sdk/dist/esm/platforms/evm.js" ;
22
22
import solana from "../../../sdk/dist/esm/platforms/solana.js" ;
23
23
import sui from "../../../sdk/dist/esm/platforms/sui.js" ;
24
+ import aptos from "../../../sdk/dist/esm/platforms/aptos.js" ;
24
25
25
26
// Use .env.example as a template for your .env file and populate it with secrets
26
27
// 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>(
85
86
signer = await algorand . getSigner ( await chain . getRpc ( ) , getEnv ( "ALGORAND_MNEMONIC" ) ) ;
86
87
break ;
87
88
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" ) ) ;
89
93
break ;
90
94
default :
91
95
throw new Error ( "Unrecognized platform: " + platform ) ;
You can’t perform that action at this time.
0 commit comments