繁体   English   中英

我在为我的 Solidity 合约编写测试时遇到问题?

[英]I'm having problems writing test for my Solidity contract?

我真的不明白 typeError 在我的第一次测试中是什么。 有人可以看看是并告诉我问题是什么。

在此处输入图像描述 在此处输入图像描述

您的代码中有一个小错字,也许这已经解决了您的问题:

在您的代码中,您写道:

let LifeInsurance = null;

/* and then */
lifeInsurance = await LifeInsurance.deployed();

注意 LifeInsurance 与 lifeInsurance 的小错字

我认为你的代码应该是这样的

let lifeInsurance = null; // small "L" here

/* and then */
lifeInsurance = await LifeInsurance.deployed();

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM