Replies: 2 comments 3 replies
-
Hello, instead of using Also, you may want to use |
Beta Was this translation helpful? Give feedback.
3 replies
-
Thankyou ! , this discussion helped me. Also I used 'await' before getting the address value i.e., ${await simpleStorage.getAddress()} and it worked for me.
|
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.
-
// who know how to use the new hardhat libray. this is the old code
async function main() {
const SimpleStorageFactory = await ethers.getContractFactory(
"SimpleStorage"
)
console.log("depplyinh contract")
const simpleStorage = await SimpleStorageFactory.deploy()
await simpleStorage.deployed()
console.log(
deploying to adddress: ${simpleStorage.address}
)// i keep on getting this error
TypeError: simpleStorage.deployed is not a function
at main (C:\Users\SCHOLAR\Desktop\hardhat\scripts\deploy.js:9:25)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
error Command failed with exit code 1.
Beta Was this translation helpful? Give feedback.
All reactions