Project
compiler
Describe the feature
Array lengths and fold/array_fold sizes should also accept compilation parameters in addition to literals.
This would let contracts configure compile-time structure sizes, such as Sparse Merkle Tree depth, multisig key count, proof batch size, or validation rounds, without changing the source.
let values: [u32; param::SIZE] = ...;
fold::<step, param::SIZE>(...);
array_fold::<step, param::SIZE>(...);
Project
compiler
Describe the feature
Array lengths and
fold/array_foldsizes should also accept compilation parameters in addition to literals.This would let contracts configure compile-time structure sizes, such as Sparse Merkle Tree depth, multisig key count, proof batch size, or validation rounds, without changing the source.