File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
plutus-core/untyped-plutus-core/src/UntypedPlutusCore/Evaluation/Machine/SteppableCek Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ import Control.Monad
5959import Control.Monad.Primitive
6060import Data.Proxy
6161import Data.RandomAccessList.Class qualified as Env
62+ import Data.RandomAccessList.SkewBinary qualified as Env
6263import Data.Semigroup (stimes )
6364import Data.Text (Text )
6465import Data.Vector qualified as V
@@ -437,10 +438,11 @@ lookupVarName
437438 ThrowableBuiltins uni fun
438439 => NamedDeBruijn -> CekValEnv uni fun ann -> CekM uni fun s (CekValue uni fun ann )
439440lookupVarName varName@ (NamedDeBruijn _ varIx) varEnv =
440- case varEnv `Env.indexOne` coerce varIx of
441- Nothing ->
442- throwErrorWithCause (StructuralError OpenTermEvaluatedMachineError ) (Var () varName)
443- Just val -> pure val
441+ Env. contIndexOne
442+ (throwErrorWithCause (StructuralError OpenTermEvaluatedMachineError ) $ Var () varName)
443+ pure
444+ varEnv
445+ (coerce varIx)
444446
445447-- | Take a possibly partial builtin application and
446448--
You can’t perform that action at this time.
0 commit comments