Ethereum “接收”;无效或不接受任何参数“;尝试部署合约时

Ethereum “接收”;无效或不接受任何参数“;尝试部署合约时,ethereum,solidity,smartcontracts,pragma,erc20,Ethereum,Solidity,Smartcontracts,Pragma,Erc20,下面是我的2_deploy_contract.js语法 const DerbyToken = artifacts.require("./DerbyToken.sol"); module.exports = function(deployer) { // Deploy the Migrations contract as our only task deployer.deploy(DerbyToken); }; 使用块菌迁移文件后,我收到此错误消息 Err

下面是我的2_deploy_contract.js语法

 const DerbyToken = artifacts.require("./DerbyToken.sol");

module.exports = function(deployer) {
  // Deploy the Migrations contract as our only task
  deployer.deploy(DerbyToken);
};
使用块菌迁移文件后,我收到此错误消息

    Error: Migration /home/cyraidz/token_sale/migrations/2_deploy_contracts.js invalid or does not take any parameters
    at Migration._load (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:55:1)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Truffle v5.3.5 (core: 5.3.5)
Node v10.19.0