Skip to content

I get an error function call #1574

Answered by krakxn
Itoro-Brown asked this question in Q&A
Aug 6, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

@othaime-en That is wrong, we need the following to wait till it is deployed; so, just deploy will not be enough.

This should fix it:

const SimpleStorage = await SimpleStorageFactory.deploy();
-await SimpleStorage.deploy();
+await SimpleStorage.deployed();

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@othaime-en
Comment options

@krakxn
Comment options

@othaime-en
Comment options

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