You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running Pact's CPMM smart contract in AlgoBuilder runtime. It fails on line 1033.
1033: int 18446744073709551615
1034: itxn_field ConfigAssetTotal
with the following stack trace
Error: RUNTIME_ERR1500: Invalid ASA definition: 'undefined'.
Reason: [total]: Total must be a positive number and smaller than 2^64-1
at ITxnSubmit.execute (node_modules/.store/@algo-builder-runtime-npm-5.0.1-79534551d4/package/src/interpreter/opcode-list.ts:4308:4)
at Interpreter.executeWithResult (node_modules/.store/@algo-builder-runtime-npm-5.0.1-79534551d4/package/src/interpreter/interpreter.ts:547:40)
at Interpreter.execute (node_modules/.store/@algo-builder-runtime-npm-5.0.1-79534551d4/package/src/interpreter/interpreter.ts:486:23)
at Runtime.run (node_modules/.store/@algo-builder-runtime-npm-5.0.1-79534551d4/package/src/runtime.ts:990:15)
at /Users/qumeric/github/cometa-laas/node_modules/.store/@algo-builder-runtime-npm-5.0.1-79534551d4/package/src/ctx.ts:820:23
at Array.forEach (<anonymous>)
at Ctx.processTransactions (node_modules/.store/@algo-builder-runtime-npm-5.0.1-79534551d4/package/src/ctx.ts:774:12)
at Runtime.executeTx (node_modules/.store/@algo-builder-runtime-npm-5.0.1-79534551d4/package/src/runtime.ts:954:31)
at new PactContext (test/pact-context.ts:57:22)
at setUpCtx (test/pact-happy-path copy.ts:17:15)
I tried to make the number smaller and got the following weird behaviour:
18446744073709550615 (2^64 - 1 - 1000) still fails
18446744073709541615 (2^64 - 1 - 10000) passes.
I am not sure which exact number starts to cause trouble.
Also, a related small issue: error says the number should be smaller than 2^64-1 while actually, it should be smaller than 2^64.
Environment
OS: macOS
Node.js version: 18 fresh
algob version: master
The text was updated successfully, but these errors were encountered:
Describe the bug
I am running Pact's CPMM smart contract in AlgoBuilder runtime. It fails on line 1033.
with the following stack trace
I tried to make the number smaller and got the following weird behaviour:
18446744073709550615 (2^64 - 1 - 1000)
still fails18446744073709541615 (2^64 - 1 - 10000)
passes.I am not sure which exact number starts to cause trouble.
Also, a related small issue: error says the number should be smaller than
2^64-1
while actually, it should be smaller than2^64
.Environment
The text was updated successfully, but these errors were encountered: