1

The following code should work : const SushiToken = artifacts.require("./SushiToken.sol") module.exports = function(deployer) { deployer.deploy(SushiToken); }; You just need to replace SushiToken() by SushiToken.


1

Check your network config in your truffle-config.js (doc), you probably use an account (or the default account) that is on your node. You have to unlock it on your node first to interact with it. Or you could use an hdwallet provider (repo here) but it will probably need some eth to make transaction unless you accept gasPrice: 0 transactions.


Only top voted, non community-wiki answers of a minimum length are eligible