From 942f545d9692b007ce03e1572efe03f000c0bbfd Mon Sep 17 00:00:00 2001 From: sofiabaezzato Date: Sun, 17 Mar 2024 12:18:49 +0100 Subject: [PATCH] fix transaction bug --- challenge/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/challenge/index.ts b/challenge/index.ts index 73e28a5..c4b7048 100644 --- a/challenge/index.ts +++ b/challenge/index.ts @@ -29,7 +29,9 @@ const txn = algosdk.makePaymentTxnWithSuggestedParamsFromObject({ amount: 1000000, }); -await algodClient.sendRawTransaction(txn).do(); +const signedTxn = txn.signTxn(sender.sk); + +await algodClient.sendRawTransaction(signedTxn).do(); const result = await algosdk.waitForConfirmation( algodClient, txn.txID().toString(),