node/accountant: fix linter warnings
This commit is contained in:
parent
8f1ab74b53
commit
e420d26356
|
@ -132,7 +132,7 @@ func newAccountantForTest(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Converts a string into a go-ethereum Hash object used as test input.
|
// Converts a string into a go-ethereum Hash object used as test input.
|
||||||
func hashFromString(str string) ethCommon.Hash {
|
func hashFromString(str string) ethCommon.Hash { //nolint:unparam
|
||||||
if (len(str) > 2) && (str[0] == '0') && (str[1] == 'x') {
|
if (len(str) > 2) && (str[0] == '0') && (str[1] == 'x') {
|
||||||
str = str[2:]
|
str = str[2:]
|
||||||
}
|
}
|
||||||
|
|
|
@ -408,7 +408,7 @@ func GetObservationResponses(txResp *sdktx.BroadcastTxResponse) (map[string]Obse
|
||||||
}
|
}
|
||||||
|
|
||||||
var msg sdktypes.TxMsgData
|
var msg sdktypes.TxMsgData
|
||||||
if err := msg.Unmarshal([]byte(data)); err != nil {
|
if err := msg.Unmarshal(data); err != nil {
|
||||||
return nil, fmt.Errorf("failed to unmarshal data: %w", err)
|
return nil, fmt.Errorf("failed to unmarshal data: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue