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

Error "List.nth_exn 21 called on list of length 21" thrown when more than 20 methods exist in SmartContract #1892

Open
dfstio opened this issue Nov 10, 2024 · 0 comments · May be fixed by #1918

Comments

@dfstio
Copy link

dfstio commented Nov 10, 2024

Compiling the SmartContract with more than 20 methods throws the error

List.nth_exn 21 called on list of length 21

      at invalid_arg (ocaml/ocaml/stdlib.ml:30:21)
      at ../../../../../trivo/.opam/mina/lib/base/printf.ml:7:46
      at Object.pickles_compile [as compile] (src/bindings/ocaml/lib/pickles_bindings.ml:573:3)
      at node_modules/o1js/dist/node/index.cjs:21189:24
      at withThreadPool (o1js/dist/node/index.cjs:3723:20)
      at prettifyStacktracePromise (o1js/dist/node/index.cjs:160:12)
      at compileProgram (o1js/dist/node/index.cjs:21184:60)
      at Function.compile (o1js/dist/node/index.cjs:25754:57)
      at Object.<anonymous> (tests/compile.ts:43:33)

According to discord, the same limitation exists for ZkProgram:
https://discord.com/channels/484437221055922177/915745847692636181/1219184666792296458

@Trivo25 Trivo25 linked a pull request Nov 23, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant