diff options
Diffstat (limited to 'data/transactions/logic/assembler.go')
-rw-r--r-- | data/transactions/logic/assembler.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/transactions/logic/assembler.go b/data/transactions/logic/assembler.go index e8011fd81..a707e23f6 100644 --- a/data/transactions/logic/assembler.go +++ b/data/transactions/logic/assembler.go @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2023 Algorand, Inc. +// Copyright (C) 2019-2024 Algorand, Inc. // This file is part of go-algorand // // go-algorand is free software: you can redistribute it and/or modify @@ -1481,7 +1481,7 @@ func typeStores(pgm *ProgramKnowledge, args []token) (StackTypes, StackTypes, er // If the index of the scratch slot is a const // we can modify only that scratch slots type if top >= 1 { - if idx, isConst := pgm.stack[top-1].constant(); isConst { + if idx, isConst := pgm.stack[top-1].constInt(); isConst { pgm.scratchSpace[idx] = pgm.stack[top] return nil, nil, nil } @@ -1524,7 +1524,7 @@ func typeLoads(pgm *ProgramKnowledge, args []token) (StackTypes, StackTypes, err return nil, nil, nil } - if val, isConst := pgm.stack[top].constant(); isConst { + if val, isConst := pgm.stack[top].constInt(); isConst { return nil, StackTypes{pgm.scratchSpace[val]}, nil } |