Skip to content

Commit

Permalink
add gasmodel as an argument to setupevalenv
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcardon committed May 17, 2024
1 parent 090fed9 commit 8b1c652
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pact/Pact/Core/Evaluate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ setupEvalEnv
:: PactDb CoreBuiltin ()
-> ExecutionMode -- <- we have this
-> MsgData -- <- create at type for this
-- -> GasEnv -- <- also have this, use constant gas model
-> GasModel CoreBuiltin -- <- also have this, use constant gas model
-> NamespacePolicy
-> SPVSupport
-> PublicData
-> S.Set ExecutionFlag
-> IO (EvalEnv CoreBuiltin ())
setupEvalEnv pdb mode msgData np spv pd efs = do
setupEvalEnv pdb mode msgData gasModel np spv pd efs = do
gasRef <- newIORef mempty
pure $ EvalEnv
{ _eeMsgSigs = mkMsgSigs $ mdSigners msgData
Expand All @@ -138,7 +138,7 @@ setupEvalEnv pdb mode msgData np spv pd efs = do
, _eeNatives = coreBuiltinMap
, _eeNamespacePolicy = np
, _eeGasRef = gasRef
, _eeGasModel = freeGasModel
, _eeGasModel = gasModel
,_eeSPVSupport = spv
}
where
Expand Down

0 comments on commit 8b1c652

Please sign in to comment.