I have a Truffle instance of the contract and I call the method like this


This gives me this error message:

method Received 0 arguments while expecting on of the follow signatures ([["unit"]])

How do I express the Unit value in JS?

1 Answer 1


You express the Unit in JavaScript by calling the method like this


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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