首页 > 解决方案 > “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

谁能告诉我为什么会出现这个错误?

标签: ethereum

解决方案


推荐阅读