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
59
59
import Control.Monad.Primitive
60
60
import Data.Proxy
61
61
import Data.RandomAccessList.Class qualified as Env
62
+ import Data.RandomAccessList.SkewBinary qualified as Env
62
63
import Data.Semigroup (stimes )
63
64
import Data.Text (Text )
64
65
import Data.Vector qualified as V
@@ -437,10 +438,11 @@ lookupVarName
437
438
ThrowableBuiltins uni fun
438
439
=> NamedDeBruijn -> CekValEnv uni fun ann -> CekM uni fun s (CekValue uni fun ann )
439
440
lookupVarName 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)
444
446
445
447
-- | Take a possibly partial builtin application and
446
448
--
You can’t perform that action at this time.
0 commit comments