3

My contract has a constructor argument, is there a way to use puddings handy Contract.deployed() function together wit a default argument? How can one achieve this?

Somehow there are args in the construction of a new contract, but I don't get it how to initialize them.

4

The contract's constructor only runs during the process of contract creation/deployment, so Contract.new(arg1ForConstructor, arg2...).

Contract.deployed() is for a contract that has already been deployed: the constructor can't be invoked again.

  • You are right, I may have not understood the problem correctly. It could be more a truffle problem I want to address. – Roland Kofler Jul 13 '16 at 7:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.