pact
pact copied to clipboard
When defining a table with not enough arguments the wrong error message gets thrown
When defining a table with not enough arguments, I received the following error:
pact/offchain.pact:56:6:OutputFailure: native function supplied too many args: [Table n_bd7f56c0bc111ea42026912c37ff5da89149d9dc.offchain.offchain-pool11::table:{n_bd7f56c0bc111ea42026912c37ff5da89149d9dc.offchain.offchain-pool-schema}, Object object12::object:* {"accounts-count": Prim integer13::integer = LInteger {_lInteger = 0},"name": Var create-pool_name0::string}]
Which I believe should instead of native function supplied too many args state native function supplied not enough args. Since the code that threw this was:
(insert offchain-pool
{ "name": name
, "accounts-count": 0
})
Nice find, thank you @EnoF.
Thanks @EnoF - we'll put this on the TODO pile