Skip to main content

IMMUTABLE_WORD_SIZE

Constant IMMUTABLE_WORD_SIZE 

Source
pub const IMMUTABLE_WORD_SIZE: usize = 32;
Expand description

Current immutable staging and placeholder width.

TODO: Support immutable references with byte widths <= 32 instead of forcing every immutable through a full PUSH32/word patch. Solidity’s standard JSON format permits shorter immutable reference lengths, and solc can emit PUSH<N> for small immutable types. Doing that here requires carrying the byte width through MIR, assembler immutable refs, and the constructor patch loop instead of blindly patching with MSTORE.