Lesson 6 Typescript conversion #5069
-
During the conversion from .js to .ts I have errors in deploy.ts in .deployed(), .address, ,deployTransaction() functions. That happen when I just convert from .js to .ts and I did all of other imports and changes in other files. And that is the erorr for each function: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@genadiN Here you can find my latest typescript project LINK, you need to specify the types. You can see how it works there. |
Beta Was this translation helpful? Give feedback.
-
You're probably using version 6 of ethers which has some major changes from version 5. Either downgrade to version 5 or change the code to the following: // Transaction receipt:
await contract.deploymentTransaction().wait(1))
// Transaction response:
contract.deploymentTransaction() |
Beta Was this translation helpful? Give feedback.
@genadiN Here you can find my latest typescript project LINK, you need to specify the types. You can see how it works there.