I have this parameter for a function:
type modify_list is
| Add of list(address)
| Remove of list(address)
type modify_list_michelson is michelson_or_right_comb(modify_list)
When I try to supply the parameter in my truffle tests like this:
{ add: [account1, account2], remove: [] }
I get this error:
Received 1 arguments while expecting one of the following signatures ([["add","list"],["remove","list"]])
Can anyone tell me how to supply the arguments correctly? I've tried simplifying the parameter with addresses instead of a list and tried pretty much every data structure I could think of in the JS test, but no success yet.