mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
common/hexutil: return err
This commit is contained in:
parent
4e6f53ac33
commit
a0eb89f0d5
1 changed files with 4 additions and 4 deletions
|
|
@ -99,8 +99,8 @@ func UnmarshalFixedText(typname string, input, out []byte) error {
|
||||||
return ErrSyntax
|
return ErrSyntax
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
hex.Decode(out, raw)
|
_, err = hex.Decode(out, raw)
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalFixedUnprefixedText decodes the input as a string with optional 0x prefix. The
|
// UnmarshalFixedUnprefixedText decodes the input as a string with optional 0x prefix. The
|
||||||
|
|
@ -120,8 +120,8 @@ func UnmarshalFixedUnprefixedText(typname string, input, out []byte) error {
|
||||||
return ErrSyntax
|
return ErrSyntax
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
hex.Decode(out, raw)
|
_, err = hex.Decode(out, raw)
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Big marshals/unmarshals as a JSON string with 0x prefix.
|
// Big marshals/unmarshals as a JSON string with 0x prefix.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue