mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
signer/core: fix unnecessary conversions
This commit is contained in:
parent
9386e3e153
commit
9cadaceb14
1 changed files with 2 additions and 2 deletions
|
|
@ -358,7 +358,7 @@ func TestJsonFiles(t *testing.T) {
|
|||
continue
|
||||
}
|
||||
var typedData core.TypedData
|
||||
err = json.Unmarshal([]byte(data), &typedData)
|
||||
err = json.Unmarshal(data, &typedData)
|
||||
if err != nil {
|
||||
t.Errorf("Test %d, file %v, json unmarshalling failed: %v", i, fInfo.Name(), err)
|
||||
continue
|
||||
|
|
@ -390,7 +390,7 @@ func TestFuzzerFiles(t *testing.T) {
|
|||
continue
|
||||
}
|
||||
var typedData core.TypedData
|
||||
err = json.Unmarshal([]byte(data), &typedData)
|
||||
err = json.Unmarshal(data, &typedData)
|
||||
if err != nil {
|
||||
t.Errorf("Test %d, file %v, json unmarshalling failed: %v", i, fInfo.Name(), err)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue