From f9d8035179092155b6b46039c01710e1e69772bd Mon Sep 17 00:00:00 2001 From: dilshaan_momin <163745912+PsychCharge@users.noreply.github.com> Date: Sun, 17 Mar 2024 20:21:44 +0530 Subject: [PATCH 1/2] DONE DONE --- challenge/index.ts | 3 ++- challenge/tsconfig.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/challenge/index.ts b/challenge/index.ts index 73e28a5..f33ecb7 100644 --- a/challenge/index.ts +++ b/challenge/index.ts @@ -29,7 +29,8 @@ const txn = algosdk.makePaymentTxnWithSuggestedParamsFromObject({ amount: 1000000, }); -await algodClient.sendRawTransaction(txn).do(); +const signedTxn: Uint8Array = txn.signTxn(sender.sk); +await algodClient.sendRawTransaction(signedTxn).do(); const result = await algosdk.waitForConfirmation( algodClient, txn.txID().toString(), diff --git a/challenge/tsconfig.json b/challenge/tsconfig.json index e016abc..1efa779 100644 --- a/challenge/tsconfig.json +++ b/challenge/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "lib": ["ESNext"], + "lib": ["DOM","ESNext"], "target": "ESNext", "module": "ESNext", "moduleDetection": "force", @@ -8,7 +8,7 @@ "allowJs": true, /* Bundler mode */ - "moduleResolution": "bundler", + "moduleResolution": "Node", "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, "noEmit": true, From 7962e16915ea0e871a6b5ca5c7db8abc7897c088 Mon Sep 17 00:00:00 2001 From: PsychCharge <163745912+PsychCharge@users.noreply.github.com> Date: Sun, 17 Mar 2024 20:25:08 +0530 Subject: [PATCH 2/2] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 81588d5..0ca6950 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,9 @@ Here is a hint for you: https://developer.algorand.org/docs/sdks/javascript/ 1. What was the problem? 2. How did you solve the problem? 3. Screenshot of your terminal showing the logged sentence. `Payment of 1000000 microAlgos was sent to [receiver's address]` + + ![image](https://github.com/PsychCharge/challenge-1/assets/163745912/3c2fbe56-3671-4412-9349-467a63c99c48) + ## Checkpoint 5: 🏆 Claim your certificate of completion NFT! 🎓