diff --git a/node/pkg/accountant/accountant_test.go b/node/pkg/accountant/accountant_test.go index 864eda6f6..8b485989f 100644 --- a/node/pkg/accountant/accountant_test.go +++ b/node/pkg/accountant/accountant_test.go @@ -132,7 +132,7 @@ func newAccountantForTest( } // 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') { str = str[2:] } diff --git a/node/pkg/accountant/submit_obs.go b/node/pkg/accountant/submit_obs.go index 1c2d2b8b9..ede540d24 100644 --- a/node/pkg/accountant/submit_obs.go +++ b/node/pkg/accountant/submit_obs.go @@ -408,7 +408,7 @@ func GetObservationResponses(txResp *sdktx.BroadcastTxResponse) (map[string]Obse } 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) }