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 when mapping PCs: Cannot read properties of undefined (reading 'map') #557

Closed
joe-p opened this issue Oct 23, 2024 · 0 comments · Fixed by #560
Closed

Error when mapping PCs: Cannot read properties of undefined (reading 'map') #557

joe-p opened this issue Oct 23, 2024 · 0 comments · Fixed by #560
Labels
bug Something isn't working

Comments

@joe-p
Copy link
Contributor

joe-p commented Oct 23, 2024

WARNING: Due to dynamic template variable type for registryAppId (uint64) PC values will be offset from first opcode after constant blocks
WARNING: Due to dynamic template variable type for adminAsaId (uint64) PC values will be offset from first opcode after constant blocks
WARNING: Due to dynamic template variable type for developmentAllowShortMints (uint64) PC values will be offset from first opcode after constant blocks
WARNING: Due to dynamic template variable type for algoUsdOracleAppId (uint64) PC values will be offset from first opcode after constant blocks
WARNING: Due to dynamic template variable type for nfdCommission1Rate (uint64) PC values will be offset from first opcode after constant blocks
WARNING: Due to dynamic template variable type for adminAsaId (uint64) PC values will be offset from first opcode after constant blocks
/Users/patrickb/dev/txnlab/nfd-infra/repos/nfd-contracts/contracts/v3/node_modules/.pnpm/@algorandfoundation+tealscript@0.104.1/node_modules/@algorandfoundation/tealscript/dist/lib/compiler.js:5973
                sm.pc = this.lineToPc[sm.teal - 1].map((pc) => pc - lastCblockPc);
                                                   ^

TypeError: Cannot read properties of undefined (reading 'map')
    at /Users/patrickb/dev/txnlab/nfd-infra/repos/nfd-contracts/contracts/v3/node_modules/.pnpm/@algorandfoundation+tealscript@0.104.1/node_modules/@algorandfoundation/tealscript/dist/lib/compiler.js:5973:52
    at Array.forEach (<anonymous>)
    at Compiler.algodCompileProgram (/Users/patrickb/dev/txnlab/nfd-infra/repos/nfd-contracts/contracts/v3/node_modules/.pnpm/@algorandfoundation+tealscript@0.104.1/node_modules/@algorandfoundation/tealscript/dist/lib/compiler.js:5968:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Compiler.algodCompile (/Users/patrickb/dev/txnlab/nfd-infra/repos/nfd-contracts/contracts/v3/node_modules/.pnpm/@algorandfoundation+tealscript@0.104.1/node_modules/@algorandfoundation/tealscript/dist/lib/compiler.js:5877:9)
    at async /Users/patrickb/dev/txnlab/nfd-infra/repos/nfd-contracts/contracts/v3/node_modules/.pnpm/@algorandfoundation+tealscript@0.104.1/node_modules/@algorandfoundation/tealscript/dist/lib/compiler.js:1798:17
    at async /Users/patrickb/dev/txnlab/nfd-infra/repos/nfd-contracts/contracts/v3/node_modules/.pnpm/@algorandfoundation+tealscript@0.104.1/node_modules/@algorandfoundation/tealscript/dist/bin/tealscript.js:66:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
1 participant