a16z / halmos

A symbolic testing tool for EVM smart contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support for specifying dynamic type lengths

karmacoma-eth opened this issue · comments

/// @custom:halmos --array-lengths m=5
function test_dynamic_bytes(bytes memory m) {
   console.log(m.length);
}

I would have expected m.length to be 5, but it was 0x41 in my test.

The alternative is to use svm.createBytes(5, "m")

same issue for the string type