Skip to content

Output in L-5 using metamask for deployment #4539

Answered by alymurtazamemon
Atharv-02 asked this question in Q&A
Discussion options

You must be logged in to vote

@Atharv-02 Write transaction takes time to update the state of the blockchain due to this we need to wait for the transaction to complete it is like the async calls in JavaScript. Without waiting for the transaction program will go further the read the blockchain state that obviously will not be updated which is why you are seeing both values same.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Atharv-02
Comment options

Answer selected by Atharv-02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants