truffle migrate 本地部署合约测试 IterableMapping 依赖问题 如何处理?

合约:https://bscscan.com/address/0x08c975868e547bfe5f76db7d1e075680e9736034#contracts

本地部署测试报错

Error:  *** Deployment Failed ***
"DogeBack" -- DogeBack contains unresolved libraries. You must deploy and link the following libraries before you can deploy a new version of DogeBack: IterableMapping.

    at D:\node\node_global\node_modules\truffle\build\webpack:\packages\deployer\src\deployment.js:365:1
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Migration._deploy (D:\node\node_global\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:75:1)
    at Migration._load (D:\node\node_global\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:61:1)
    at Migration.run (D:\node\node_global\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:218:1)
    at Object.runMigrations (D:\node\node_global\node_modules\truffle\build\webpack:\packages\migrate\index.js:150:1)
    at Object.runFrom (D:\node\node_global\node_modules\truffle\build\webpack:\packages\migrate\index.js:110:1)
    at Object.run (D:\node\node_global\node_modules\truffle\build\webpack:\packages\migrate\index.js:87:1)
    at runMigrations (D:\node\node_global\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:258:1)
    at Object.run (D:\node\node_global\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:223:1)
    at Command.run (D:\node\node_global\node_modules\truffle\build\webpack:\packages\core\lib\command.js:167:1)
- Blocks: 0            Seconds: 0

这种IterableMapping 依赖报错 怎么处理? 1_initial_migration.js 怎么配置

请先 登录 后评论

最佳答案 2021-07-21 02:00

构造函数没有匹配。

deployer.deploy(MyContract, 构造参数);
请先 登录 后评论

其它 3 个回答

Tiny熊
  擅长:智能合约,以太坊
请先 登录 后评论
daryl
请先 登录 后评论
daryl
请先 登录 后评论
  • 2 关注
  • 0 收藏,441 浏览
  • daryl 提出于 2021-07-18 13:58