Learn how to deploy EVM equivalent smart contracts on Abstract.
0x01
: Flag for Native ZKsync VM bytecode.0x02
: Flag for EVM bytecode (i.e. EVM equivalent smart contracts).Check code hash prefix
0x01
or 0x02
.Translate & execute opcodes
0x01
), this step is skipped.Otherwise, the EVM interpreter interprets and executes opcodes in a loop; translating EVM opcodes into ZKsync VM instructions;
execution continues until completion, error, or out-of-ergs condition.DELEGATECALL
between EVM and native ZKsync VM contracts will be reverted.GASLIMIT
opcode returns the same fixed constant as ZKsync VM and should not be used.CALLCODE
SELFDESTRUCT
BLOBHASH
BLOBBASEFEE