Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Received error TypeError: simpleStorage.deployed is not a function #67

Open
kayGweb opened this issue Feb 20, 2024 · 0 comments
Open

Received error TypeError: simpleStorage.deployed is not a function #67

kayGweb opened this issue Feb 20, 2024 · 0 comments

Comments

@kayGweb
Copy link

kayGweb commented Feb 20, 2024

The error you encountered is due to a change in the Ethers.js library. Let’s address this step by step:

The function deployed() has been deprecated and is no longer available.
Instead, you should use waitForDeployment().

Corrected Code:
Replace await simpleStorage.deployed(); with await simpleStorage.waitForDeployment();.
This change should resolve the issue.

Hope this helps someone!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant