ethereum - “ERC1155”——“未定义”的参数数量无效。得到 0 预期 1
问题描述
我正在为 nft 部署 ERC1155 代币智能合约。但是当我尝试通过松露进行部署时,我得到了错误。
错误:“ERC1155”——“未定义”的参数数量无效。得到 0 预期 1!。
整个错误:
部署“ERC1155”-------
错误:*** 部署失败 ***
“ERC1155”——“未定义”的参数数量无效。得到 0 预期 1!。
at /usr/lib/node_modules/truffle/build/webpack:/packages/deployer/src/deployment.js:365:1 at processTicksAndRejections (internal/process/task_queues.js:97:5) at Migration._deploy (/usr/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:74:1) at Migration._load (/usr/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:61:1) at Migration.run (/usr/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:212:1) at Object.runMigrations (/usr/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:150:1) at Object.runFrom (/usr/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:110:1) at Object.run (/usr/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:87:1) at runMigrations (/usr/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:258:1) at Object.run (/usr/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:223:1) at Command.run (/usr/lib/node_modules/truffle/build/webpack:/packages/core/lib/command.js:147:1)
Truffle v5.3.6(核心:5.3.6)节点 v12.22.1
谁能告诉我为什么会出现这个错误?
解决方案
推荐阅读
- pandas - 将参数添加到应用的数据框函数
- css - CSS - 如何使移动过渡动画响应?
- laravel - 使用反射将服务注入 Laravel 8 上的服务
- flutter - Flutter SingleChildScrollView 在 ListView 上不起作用
- sql - 将 varchar 数据类型转换为 datetime 数据类型导致值超出范围。错误
- html - 如何自定义雪佛龙向下 [已解决]
- javascript - 在jQuery中通过ajax发送多维复选框数组
- java - Tika 服务器返回状态:404
- angular - Angular 和使用来自 API 的 JSON
- java - java 希伯来路径改成什么?