nomoixyz / vulcan

Development framework for Foundry projects
https://nomoixyz.github.io/vulcan/
MIT License
286 stars 18 forks source link

Fix or improve error message vulcan.fmt._readSlice(bytes,uint256,uint256): Slice out of bounds #188

Open vdrg opened 1 year ago

vdrg commented 1 year ago

Reproduce:

bytes32 a = bytes32("hello");
// a is not bytes so this happens
println("{b}", abi.encode(a));

We need to decide if we want to handle this in some way or just provide a better error message with suggestions.

vdrg commented 11 months ago

@gnkz should we close this?

gnkz commented 11 months ago

@gnkz should we close this?

Not yet, will work on this soon