accounts/abi: fix nil to false

Signed-off-by: RJ Catalano <rj@monax.io>
This commit is contained in:
RJ Catalano 2017-06-16 17:37:57 -05:00
parent f581d544cb
commit fc957fa93d
No known key found for this signature in database
GPG key ID: D4AB109D9B5D6386

View file

@ -162,7 +162,7 @@ func readInteger(kind reflect.Kind, b []byte) interface{} {
func readBool(word []byte) (bool, error) {
if len(word) != 32 {
return nil, fmt.Errorf("abi: fatal error: incorrect word length")
return false, fmt.Errorf("abi: fatal error: incorrect word length")
}
improperEncoding := "abi: improperly encoded boolean value"
for i, b := range word {