【发布时间】:2021-01-24 17:33:11
【问题描述】:
在我的第一次测试中,我真的不明白 typeError 是什么。有人可以看看is并告诉我问题是什么。
【问题讨论】:
-
嗨,欢迎来到 SO !请尝试将您的相关代码作为实际文本包含在帖子中,而不仅仅是图像。
标签: javascript blockchain ethereum solidity smartcontracts
在我的第一次测试中,我真的不明白 typeError 是什么。有人可以看看is并告诉我问题是什么。
【问题讨论】:
标签: javascript blockchain ethereum solidity smartcontracts
您的代码中有一个小错字,也许这已经解决了您的问题:
在您编写的代码中:
let LifeInsurance = null;
/* and then */
lifeInsurance = await LifeInsurance.deployed();
注意 LifeInsurance 与 lifeInsurance 的小错字
我认为你的代码应该是这样的
let lifeInsurance = null; // small "L" here
/* and then */
lifeInsurance = await LifeInsurance.deployed();
【讨论】: