#include <wasm_sysio_validation.hpp>
Definition at line 26 of file wasm_sysio_validation.hpp.
◆ validate()
void sysio::chain::wasm_validations::data_segments_validation_visitor::validate |
( |
const IR::Module & | m | ) |
|
|
static |
Definition at line 23 of file wasm_sysio_validation.cpp.
23 {
25 if (
ds.baseOffset.type != InitializerExpression::Type::i32_const )
26 FC_THROW_EXCEPTION( wasm_execution_error,
"Smart contract has unexpected memory base offset type" );
27
29 FC_THROW_EXCEPTION(wasm_execution_error,
"Smart contract data segments must lie in first ${k}KiB",
31 }
32}
#define FC_THROW_EXCEPTION(EXCEPTION, FORMAT,...)
static const Segment ds(Segment::ds)
constexpr unsigned maximum_linear_memory_init
std::vector< DataSegment > dataSegments
The documentation for this struct was generated from the following files: