2

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?

4

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

contract_instance.method([["unit"]]);
| improve this answer | |

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.