@@ -157,7 +157,7 @@ loadLibraries :: (MonadIO m, MonadThrow m, MonadReader x m, Has SolConf x)
157157 => [SolcContract ] -> Addr -> Addr -> VM -> m VM
158158loadLibraries [] _ _ vm = return vm
159159loadLibraries (l: ls) la d vm = loadLibraries ls (la + 1 ) d =<< loadRest
160- where loadRest = execStateT (execTx $ createTx (l ^. creationCode) d la unlimitedGasPerBlock) vm
160+ where loadRest = execStateT (execTx $ createTx (l ^. creationCode) d la ( fromInteger unlimitedGasPerBlock) ) vm
161161
162162-- | Generate a string to use as argument in solc to link libraries starting from addrLibrary
163163linkLibraries :: [String ] -> String
@@ -214,7 +214,7 @@ loadSpecified name cs = do
214214
215215 -- Set up initial VM, either with chosen contract or Etheno initialization file
216216 -- need to use snd to add to ABI dict
217- blank' <- maybe (pure (initialVM & block . maxCodeSize .~ w256 (fromInteger mcs)))
217+ blank' <- maybe (pure (initialVM & block . gaslimit .~ fromInteger unlimitedGasPerBlock & block . maxCodeSize .~ w256 (fromInteger mcs)))
218218 (loadEthenoBatch $ fst <$> tests)
219219 fp
220220 let blank = populateAddresses (NE. toList ads |> d) bala blank'
@@ -231,7 +231,7 @@ loadSpecified name cs = do
231231 Just (t,_) -> throwM $ TestArgsFound t -- Test args check
232232 Nothing -> do
233233 vm <- loadLibraries ls addrLibrary d blank
234- let transaction = unless (isJust fp) $ void . execTx $ createTxWithValue bc d ca unlimitedGasPerBlock (w256 $ fromInteger balc)
234+ let transaction = unless (isJust fp) $ void . execTx $ createTxWithValue bc d ca ( fromInteger unlimitedGasPerBlock) (w256 $ fromInteger balc)
235235 vm' <- execStateT transaction vm
236236 case currentContract vm' of
237237 Just _ -> return (vm', c ^. eventMap, neFuns, fst <$> tests, abiMapping)
0 commit comments