@@ -39,12 +39,11 @@ import Data.List.Split (splitOn)
3939import Text.Read (readMaybe )
4040import JSONL (jsonlBuilder , jsonLine )
4141
42- import EVM (initialContract , abstractContract , makeVm )
42+ import EVM (initialContract , abstractContract , makeVm , defaultVMOpts )
4343import EVM.ABI (Sig (.. ))
4444import EVM.Dapp (dappInfo , DappInfo , emptyDapp )
4545import EVM.Expr qualified as Expr
4646import EVM.Concrete qualified as Concrete
47- import EVM.FeeSchedule (feeSchedule )
4847import EVM.Fetch qualified as Fetch
4948import EVM.Format (hexByteString , strip0x , formatExpr , indent )
5049import EVM.Solidity
@@ -708,9 +707,8 @@ vmFromCommand cOpts cExecOpts cFileOpts execOpts sess = do
708707 then addr (. address) (Concrete. createAddress (fromJust $ maybeLitAddrSimp origin) (W64 $ word64 (. nonce) 0 ))
709708 else addr (. address) (LitAddr 0xacab )
710709
711- vm0 baseFee miner ts blockNum prevRan c = makeVm $ VMOpts
710+ vm0 baseFee miner ts blockNum prevRan c = makeVm $ (defaultVMOpts @ Concrete )
712711 { contract = c
713- , otherContracts = []
714712 , calldata = (calldata, [] )
715713 , value = Lit val
716714 , address = address
@@ -727,15 +725,8 @@ vmFromCommand cOpts cExecOpts cFileOpts execOpts sess = do
727725 , gasprice = word (. gasprice) 0
728726 , maxCodeSize = word (. maxcodesize) 0xffffffff
729727 , prevRandao = word (. prevRandao) prevRan
730- , schedule = feeSchedule
731728 , chainId = word (. chainid) 1
732729 , create = (. create) execOpts
733- , baseState = EmptyBase
734- , txAccessList = mempty -- TODO: support me soon
735- , allowFFI = False
736- , freshAddresses = 0
737- , beaconRoot = 0
738- , parentHash = 0
739730 }
740731 word f def = fromMaybe def (f cExecOpts)
741732 word64 f def = fromMaybe def (f cExecOpts)
@@ -815,15 +806,14 @@ symvmFromCommand cExecOpts sOpts cFileOpts sess calldata = do
815806 address = eaddr (. address) (SymAddr " entrypoint" )
816807 originAddr = eaddr (. origin) (SymAddr " origin" )
817808 originContr = abstractContract (RuntimeCode (SymbolicRuntimeCode mempty )) originAddr
818- vm0 baseFee miner ts blockNum prevRan cd callvalue caller c baseState = makeVm $ VMOpts
809+ vm0 baseFee miner ts blockNum prevRan cd callvalue caller c baseState = makeVm $ defaultVMOpts
819810 { contract = c
820811 , otherContracts = [(originAddr, originContr)]
821812 , calldata = cd
822813 , value = callvalue
823814 , address = address
824815 , caller = caller
825816 , origin = origin
826- , gas = ()
827817 , gaslimit = word64 (. gaslimit) 0xffffffffffffffff
828818 , baseFee = baseFee
829819 , priorityFee = word (. priorityFee) 0
@@ -834,15 +824,9 @@ symvmFromCommand cExecOpts sOpts cFileOpts sess calldata = do
834824 , gasprice = word (. gasprice) 0
835825 , maxCodeSize = word (. maxcodesize) 0xffffffff
836826 , prevRandao = word (. prevRandao) prevRan
837- , schedule = feeSchedule
838827 , chainId = word (. chainid) 1
839828 , create = (. create) sOpts
840829 , baseState = baseState
841- , txAccessList = mempty
842- , allowFFI = False
843- , freshAddresses = 0
844- , beaconRoot = 0
845- , parentHash = 0
846830 }
847831 word f def = fromMaybe def (f cExecOpts)
848832 word64 f def = fromMaybe def (f cExecOpts)
0 commit comments