Skip to content

Lesson 5: Updated Favorite number is: [object Promise] #1582

Answered by othaime-en
eli5mecoding asked this question in Q&A
Discussion options

You must be logged in to vote

add await when declaring updatedFavoriteNumber:
It should be const updatedFavoriteNumber = await contract.retrieve()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eli5mecoding
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