leadwallet/Lead-Stake-DApp-Frontend

Unhandled Rejection (TypeError): leadStake.methods.dailyROI is not a function

Opened this issue · 1 comments

`init
http://localhost:3000/static/js/main.chunk.js:1123:46

1120 | const registrationTax = await leadStake.methods.registrationTax().call();
1121 | const referralRewards = await leadStake.methods.referralRewards(accounts[0]).call();
1122 | const referralCount = await leadStake.methods.referralCount(accounts[0]).call();

1123 | const dailyROI = await leadStake.methods.dailyROI().call();
| ^ 1124 | const status = await leadStake.methods.registered(accounts[0]).call();
1125 | setWeb3(web3);
1126 | setAccounts(accounts);`

Loading in localhost throws the above error when testing in ropsten test network.

` 86 | const referralCount = await leadStake.methods
87 | .referralCount(accounts[0])
88 | .call();

89 | const dailyROI = await leadStake.methods.dailyROI().call();
| ^ 90 | const status = await leadStake.methods.registered(accounts[0]).call();
91 |
92 | setWeb3(web3);`