@ethereumjs/evm / validateEOF
validateEOF(
input
,evm
,containerMode
,eofMode
):EOFContainer
Defined in: eof/container.ts:477
This method validates the EOF. It also performs deeper validation of the body, such as stack/opcode validation
This is ONLY necessary when trying to deploy contracts from a transaction: these can submit containers which are invalid
Since all deployed EOF containers are valid by definition, validateEOF
does not need to be called each time an EOF contract is called
Uint8Array
Full container buffer
EVM
EVM, to read opcodes from
ContainerSectionType
= ContainerSectionType.RuntimeCode
Container mode to validate on
EOFContainerMode
= EOFContainerMode.Default
EOF mode to run in