3

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

contract_instance.method();

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

5

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

contract_instance.method([["unit"]]);

Your Answer

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

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