What's the difference between these 2 code blocks? #4521
DorianDaSilva
started this conversation in
General
Replies: 2 comments 2 replies
-
first block - |
Beta Was this translation helpful? Give feedback.
2 replies
-
@rin-st
=> The video leaves it empty { } |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have been struggling with
const proposalId = proposeReceipt.events[0].args.proposalId
bit inpropose.ts
script as described in discussion #4508Here are 2 code blocks I ran regarding this issue, one runs perfectly, the other breaks at
const proposalId
:1- This code block snippet from the course repo runs perfectly as seen below (With or without saving
proposalId
bit)Output
2- On the other hand the code I copied following along the video fails with and without the
const proposals
blockHere is my code block for
ProposalId
Output
1st run:

| I have to restart the node because this crashes it!
2nd run (after restarting node)

Call me crazy but they look identical to me, so what I am missing here?
Do you have any insights on this @alymurtazamemon?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions