Lesson 5: Cannot deploy contract #6775
-
When I run
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')
|
Beta Was this translation helpful? Give feedback.
-
For the first question, look at post #6220 and add this: |
Beta Was this translation helpful? Give feedback.
For the first question, look at post #6220 and add this:
const contract = await contractFactory.deploy({
gasPrice: 20000000000,
gasLimit: 6721975,
});
console.log("Here is the transaction:");
console.log(contract.deployTransaction);
For question two , you need to down grade to soilidity 0.8.19
check out this website for more information(https://ethereum.stackexchange.com/questions/152509/could-not-coalesce-error-invalid-opcode)