Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When defining a table with not enough arguments the wrong error message gets thrown #1143

Open
EnoF opened this issue Feb 15, 2023 · 2 comments

Comments

@EnoF
Copy link

EnoF commented Feb 15, 2023

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
  })
@jwiegley
Copy link
Contributor

Nice find, thank you @EnoF.

@emilypi
Copy link
Member

emilypi commented Feb 27, 2023

Thanks @EnoF - we'll put this on the TODO pile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants