mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
signer: remove ineffectual assignments
This commit is contained in:
parent
1e372d7fa7
commit
fc350b435e
1 changed files with 0 additions and 4 deletions
|
|
@ -38,17 +38,13 @@ func verify(t *testing.T, jsondata, calldata string, exp []interface{}) {
|
||||||
cd := common.Hex2Bytes(calldata)
|
cd := common.Hex2Bytes(calldata)
|
||||||
sigdata, argdata := cd[:4], cd[4:]
|
sigdata, argdata := cd[:4], cd[4:]
|
||||||
method, err := abispec.MethodById(sigdata)
|
method, err := abispec.MethodById(sigdata)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
data, err := method.Inputs.UnpackValues(argdata)
|
data, err := method.Inputs.UnpackValues(argdata)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(data) != len(exp) {
|
if len(data) != len(exp) {
|
||||||
t.Fatalf("Mismatched length, expected %d, got %d", len(exp), len(data))
|
t.Fatalf("Mismatched length, expected %d, got %d", len(exp), len(data))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue