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! 🎓 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,