Skip to content

Commit

Permalink
fix typo in 'runtime/src/ctx.ts'
Browse files Browse the repository at this point in the history
I think this implementation doesn't return the real result as algod sandbox (not tested yet)
If so, this test also needs a change.
https://github.com/scale-it/algo-builder/blob/2bcef8f611b349dfb8dc3542ed2f0a129a0c405c/packages/runtime/test/src/interpreter/opcode-list.ts#L3001-L3011
  • Loading branch information
PabloLION authored and rmeena840 committed Oct 12, 2022
1 parent e20d7a8 commit 759c502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime/src/ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ export class Ctx implements Context {

getCallerApplicationID(): number {
let callerApplicationID = 0;
if (this.innerTxAppIDCallStack.length > 0) {
callerApplicationID = this.innerTxAppIDCallStack[this.innerTxAppIDCallStack.length - 1];
if (this.innerTxAppIDCallStack.length > 1) {
callerApplicationID = this.innerTxAppIDCallStack[this.innerTxAppIDCallStack.length - 2];
}
return callerApplicationID;
}
Expand Down

0 comments on commit 759c502

Please sign in to comment.