Skip to content

Commit

Permalink
Add doc for RuntimeCode
Browse files Browse the repository at this point in the history
  • Loading branch information
arcz committed Dec 27, 2022
1 parent edba863 commit ef96038
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EVM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ data ContractCode
| RuntimeCode RuntimeCode -- ^ "Instance" code, after contract creation
deriving (Show)

-- | We have two variants here to optimize the fully concrete case.
-- ConcreteRuntimeCode just wraps a ByteString
-- SymbolicRuntimeCode is a fixed length vector of potentially symbolic bytes, which lets us handle symbolic pushdata (e.g. from immutable variables in solidity).
data RuntimeCode
= ConcreteRuntimeCode ByteString
| SymbolicRuntimeCode (V.Vector (Expr Byte))
Expand Down

0 comments on commit ef96038

Please sign in to comment.