Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::wasm_validations::memories_validation_visitor Struct Reference

#include <wasm_sysio_validation.hpp>

Static Public Member Functions

static void validate (const IR::Module &m)
 

Detailed Description

Definition at line 22 of file wasm_sysio_validation.hpp.

Member Function Documentation

◆ validate()

void sysio::chain::wasm_validations::memories_validation_visitor::validate ( const IR::Module & m)
static

Definition at line 17 of file wasm_sysio_validation.cpp.

17 {
18 if ( m.memories.defs.size() && m.memories.defs[0].type.size.min > wasm_constraints::maximum_linear_memory/(64*1024) )
19 FC_THROW_EXCEPTION(wasm_execution_error, "Smart contract initial memory size must be less than or equal to ${k}KiB",
21}
#define FC_THROW_EXCEPTION(EXCEPTION, FORMAT,...)
IndexSpace< MemoryDef, MemoryType > memories
Definition Module.h:135

The documentation for this struct was generated from the following files: