Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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! 🎓

Expand Down
3 changes: 2 additions & 1 deletion challenge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
4 changes: 2 additions & 2 deletions challenge/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"compilerOptions": {
"lib": ["ESNext"],
"lib": ["DOM","ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,

/* Bundler mode */
"moduleResolution": "bundler",
"moduleResolution": "Node",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
Expand Down