AssertionError:错误消息必须包含还原

问题描述 投票:0回答:1

虽然我运行测试时遇到此错误。。

我正在尝试使用DAPPuniversity教程制作自己的加密货币,但是,我的代码不断抛出异常。

  Contract: ValleyToken
    √ initialize the contract with correct values (363ms)
    √ sets the initial supply upon deployment (363ms)
    1) transfers token ownership
    > No events were emitted


  2 passing (869ms)
  1 failing

  1) Contract: ValleyToken
       transfers token ownership:
     ReferenceError: Faicoin is not defined
      at Context.<anonymous> (test\ValleyToken.js:47:5)
      at process._tickCallback (internal/process/next_tick.js:68:7)

虽然我运行测试时遇到此错误。.我试图使用DAPPuniversity教程来制作自己的加密货币,但是,我的代码不断抛出异常。合约:ValleyToken√...

token ethereum solidity revert
1个回答
0
投票

用测试替换此代码:)

© www.soinside.com 2019 - 2024. All rights reserved.