Skip to content

Commit

Permalink
compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller committed Apr 7, 2021
1 parent 86679f1 commit 5c9ee90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plutus-pab/src/Plutus/PAB/Simulator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,10 @@ handleContractStore ::
=> ContractStore t
~> Eff effs
handleContractStore = \case
Contract.PutState def instanceId state -> do
Contract.PutState definition instanceId state -> do
instancesTVar <- view instances <$> (Core.askUserEnv @t @(SimulatorState t))
liftIO $ STM.atomically $ do
let instState = SimulatorContractInstanceState{_contractDef = def, _contractState = state}
let instState = SimulatorContractInstanceState{_contractDef = definition, _contractState = state}
STM.modifyTVar instancesTVar (set (at instanceId) (Just instState))
Contract.GetState instanceId -> do
instancesTVar <- view instances <$> (Core.askUserEnv @t @(SimulatorState t))
Expand Down

0 comments on commit 5c9ee90

Please sign in to comment.