Ligo test: Bytes.sub and assert_with_error return 'Unbound primitive' error
Perhaps this is a known issue since the test sub-command is in beta. I found a similar issue that has been resolved in #1277 (closed).
To reproduce, run the following with ligo run test
:
let test =
Bytes.sub 0n 1n (Bytes.pack 5n)
Note that this also seems to apply to assert_with_error
. One difference from #1277 (closed), I think, is that Bytes.sub and assert_with_error DO work with ligo run interpret
:
> ligo run interpret "Bytes.sub 0n 1n (Bytes.pack 5n)" -s cameligo
> 0x05