@@ -19,7 +19,7 @@ async function main() {
1919 const mnemonic =
2020 'creek phrase island true then hope employ veteran rapid hurdle above liberty tissue connect alcohol timber idle ten frog bulb embody crunch taxi abstract month' ;
2121 const recoveredAccount = algosdk . mnemonicToSecretKey ( mnemonic ) ;
22- console . log ( 'Recovered mnemonic account: ' , recoveredAccount . addr ) ;
22+ console . log ( 'Recovered mnemonic account: ' , recoveredAccount . addr . toString ( ) ) ;
2323 // example: ACCOUNT_RECOVER_MNEMONIC
2424
2525 const funder = accounts [ 0 ] ;
@@ -31,14 +31,14 @@ async function main() {
3131 signerAccounts . push ( algosdk . generateAccount ( ) ) ;
3232
3333 // multiSigParams is used when creating the address and when signing transactions
34- const multiSigParams = {
34+ const multiSigParams : algosdk . MultisigMetadata = {
3535 version : 1 ,
3636 threshold : 2 ,
3737 addrs : signerAccounts . map ( ( a ) => a . addr ) ,
3838 } ;
3939 const multisigAddr = algosdk . multisigAddress ( multiSigParams ) ;
4040
41- console . log ( 'Created MultiSig Address: ' , multisigAddr ) ;
41+ console . log ( 'Created MultiSig Address: ' , multisigAddr . toString ( ) ) ;
4242 // example: MULTISIG_CREATE
4343
4444 const fundMsigTxn = algosdk . makePaymentTxnWithSuggestedParamsFromObject ( {
@@ -80,7 +80,7 @@ async function main() {
8080 // example: ACCOUNT_GENERATE
8181 const generatedAccount = algosdk . generateAccount ( ) ;
8282 const passphrase = algosdk . secretKeyToMnemonic ( generatedAccount . sk ) ;
83- console . log ( `My address: ${ generatedAccount . addr } ` ) ;
83+ console . log ( `My address: ${ generatedAccount . addr . toString ( ) } ` ) ;
8484 console . log ( `My passphrase: ${ passphrase } ` ) ;
8585 // example: ACCOUNT_GENERATE
8686
@@ -117,7 +117,7 @@ async function main() {
117117 rekeyTo : acct1 . addr ,
118118 } ) ;
119119 await client . sendRawTransaction ( rekeyBack . signTxn ( acct2 . privateKey ) ) . do ( ) ;
120- await algosdk . waitForConfirmation ( client , rekeyBack . txID ( ) . toString ( ) , 3 ) ;
120+ await algosdk . waitForConfirmation ( client , rekeyBack . txID ( ) , 3 ) ;
121121}
122122
123123main ( ) ;
0 commit comments