Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

TypeError: lotteryInstance.init is not a function #12

Open
sinetemp opened this issue May 1, 2021 · 1 comment
Open

TypeError: lotteryInstance.init is not a function #12

sinetemp opened this issue May 1, 2021 · 1 comment

Comments

@sinetemp
Copy link

sinetemp commented May 1, 2021

Hi, I get the following error on running yarn deploy:local.

TypeError: lotteryInstance.init is not a function
    at main (/home/eth/lottery-contract/scripts/deploy.js:85:27)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
error Command failed with exit code 1.

Any suggestions why this is the case?

@huyiya
Copy link

huyiya commented May 9, 2021

Change lotteryInstance.init to lotteryInstance.initialize. It works for me.

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

2 participants