如何解决我在为 Solidity 合同编写测试时遇到问题?
我真的不明白我第一次测试的 typeError 是什么。有人可以看看是什么并告诉我问题是什么。
enter image description here enter image description here
解决方法
您的代码中有一个小错误,也许这已经解决了您的问题:
在您编写的代码中:
let LifeInsurance = null;
/* and then */
lifeInsurance = await LifeInsurance.deployed();
注意 LifeInsurance 与 lifeInsurance 的小错别字
我认为你的代码应该是这样的
let lifeInsurance = null; // small "L" here
/* and then */
lifeInsurance = await LifeInsurance.deployed();
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。