Ethereum &引用;ERC1155““的参数数无效”;“未定义”;。得到0,应为1

Ethereum &引用;ERC1155““的参数数无效”;“未定义”;。得到0,应为1,ethereum,Ethereum,我正在为nft部署ERC1155令牌智能合约。但当我试图通过块菌部署时,我得到了错误 错误:“ERC1155”-“未定义”的参数数无效。得到了0个期望值1 整个错误: 部署“ERC1155”------------------- 错误:**部署失败*** “ERC1155”-“未定义”的参数数无效。得了0分 预期1 at /usr/lib/node_modules/truffle/build/webpack:/packages/deployer/src/deployment.js:365:1 a

我正在为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)
块菌v5.3.6(核心:5.3.6)节点v12.22.1


有人能告诉我为什么会发生此错误吗?

请编辑您的问题,并共享Solidity构造函数和部署该合同的JS代码。