Skip to content

Conversation

@cmasta9
Copy link

@cmasta9 cmasta9 commented Mar 18, 2024

solved the problem

Algorand Coding Challenge Submission

What was the bug?

The transaction wasn't signed. We had to sign it using the sender's private key before it could be sent.

How did you fix the bug?

All that I needed to do was add a line where I called signTxn() and sent in the sender's private key. It took me a while to figure out what the command was, but I ended up solving it by logging the sender object so I could see the structure of the data. Then I was stuck for a long time again because I tried to validate the transaction using the signed transaction object, so I ended up with a promise that never resolved. The docs were a little bit misleading in that regard, but maybe that is purposeful.

Console Screenshot:

Screenshot 2024-03-17 202454

solved the problem
@iskysun96 iskysun96 added the Approved ✅ Successfully completed the challenge! label Mar 18, 2024
@iskysun96
Copy link
Contributor

Amazing job finding the answer 🔥

🎉Congrats on solving your first Algorand coding challenge!

I have labeled your PR approved so you can now claim your certificate.

You can claim your certificate of completion NFT here: https://goplausible.xyz/claim/r2747zdbzrvsfxs3zqx5mtmj389k8gwez5tm92m3dsrs8pbj65rn74j175dh1jacnnbrx1rcr1tdm6grsnx2spdnt78ce5tncje7p2r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved ✅ Successfully completed the challenge!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants