错误:错误处理./governor-token.ts:typeError:无法读取未定义的属性(Reading' BlockConfircations')
我想通过Rinkeby测试网络上的Typescript部署令牌智能合约(坚固)。
失败的命令是:
const governanceToken = await deploy("GovernanceToken", {
from: deployer,
args: [],
log: true,
// we need to wait if on a live network so we can verify properly
waitConfirmations: networkConfig[network.name].blockConfirmations || 1,
})
错误:错误处理./governor-token.ts:typeError:无法读取未定义的属性(读取'BlockConfircations')
I want to deploy my token smart contract (solidity) via typescript on the Rinkeby test network.
The command that fails is:
const governanceToken = await deploy("GovernanceToken", {
from: deployer,
args: [],
log: true,
// we need to wait if on a live network so we can verify properly
waitConfirmations: networkConfig[network.name].blockConfirmations || 1,
})
Error: ERROR processing ./governor-token.ts: TypeError: Cannot read properties of undefined (reading 'blockConfirmations')
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不遵循为什么帖子中的解决方案不起作用,但是如果我使用ContractSfactory,并且有些等待它可以正常工作:
I don't follow why the solution in the post doesn't work, but if I use the ContractsFactory instead and some awaits it works fine: