Skip to main content
6 events
when toggle format what by license comment
May 6, 2020 at 12:28 vote accept Kaya Jones
May 6, 2020 at 12:26 comment added goodvibration @KayaJones: if your contract's constructor takes no argument, then the deployer should obviously not pass any arguments to it. But it sounds to me like you should learn how Truffle Deployer works, because it makes very little sense to do something like deployer.deploy(KJToken, KJToken.address), regardless of the fact that the constructor doesn't take any arguments (i.e., even if it took one argument).
May 6, 2020 at 12:23 comment added Kaya Jones I guess not, I'm new to learning how to build smart contracts. But anyway does this mean that I would need to make my deployer take no arguments as well?
May 6, 2020 at 12:13 comment added goodvibration @KayaJones: Do you really need this constructor to take 1 argument (let alone, according to your migration code, the address of some other KJToken contract instance)???
May 6, 2020 at 12:12 comment added Kaya Jones Hello, so how would I change the constructor of the contract to take that 1 argument?
May 6, 2020 at 12:07 history answered goodvibration CC BY-SA 4.0