Skip to content

Commit

Permalink
hevm: fix nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
zoep committed Sep 25, 2023
1 parent 090133b commit b4adb33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/HEVM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import EVM.Solvers
import qualified EVM.Format as Format
import qualified EVM.Fetch as Fetch


type family ExprType a where
ExprType 'AInteger = EVM.EWord
ExprType 'ABoolean = EVM.EWord
Expand Down Expand Up @@ -163,7 +162,7 @@ rewritesToExpr layout cid rewrites bytecode = foldl (flip $ rewriteToExpr layout
initcontract = EVM.C { EVM.code = EVM.RuntimeCode (EVM.ConcreteRuntimeCode bytecode)
, EVM.storage = EVM.AbstractStore initAddr
, EVM.balance = EVM.Balance (EVM.SymAddr "entrypoint")
, EVM.nonce = Just 1
, EVM.nonce = Just 0
}
initmap = M.fromList [(initAddr, initcontract)]

Expand Down

0 comments on commit b4adb33

Please sign in to comment.