This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Specificity order for strings and bools in Encoder should swap when strictBooleans
is enabled
#6028
Labels
Right now, strings are more specific than bools. If
strictBooleans
is on, this makes no sense; bools should be more specific. This is relevant because it could pose problems for overload resolution in Truffle Call, e.g. (Imagine if you wrotecall C f true
and gotf(string)
when you wantedf(bool)
!)Note that Encoder can't have specificity of types depend on the particular input, but there's no reason it can't have it depend on a flag like this. It should.
Environment
truffle version
): 5.8.4The text was updated successfully, but these errors were encountered: