Skip to main content
5 events
when toggle format what by license comment
Oct 16, 2023 at 9:55 comment added Zartaj Afser Cool, happy coding.
Oct 16, 2023 at 9:34 comment added Yassine thank you @Zartaj Afser i solve it it was a circular dependency problem
Oct 15, 2023 at 5:15 comment added Zartaj Afser After deploying the contract, add this line too. stake = await stake.waitForDeployment. This will make sure your contract is deployed before accessing the address. And if it still doesn't works, then try to console the stake instance itself to know whether or not the contract is deployed.
Oct 14, 2023 at 18:54 comment added Yassine i appreciate your response , using your suggestion i did this solidity try { stake = await Stake.deploy( token.target(), YasCoin(1000)) console.log(`stake address: ${stake.address}`); } catch (error) { console.error('Error deploying Stake contract:', error); } token = await Token.deploy( 'YasCoin', 'YCN', 18, YasCoin(1000),stake.target() ) now and i've got this error TypeError: Cannot read properties of undefined (reading 'target')
Oct 14, 2023 at 16:06 history answered Zartaj Afser CC BY-SA 4.0