signer: remove ineffectual assignments (#18049)

* signer: remove ineffectual assignments

* signer: remove ineffectual assignments
This commit is contained in:
Martin Holst Swende
2018-11-07 13:55:54 +01:00
committed by Péter Szilágyi
parent eea3ae42a3
commit 5b74bb6445
2 changed files with 7 additions and 7 deletions

View File

@ -38,13 +38,13 @@ func verify(t *testing.T, jsondata, calldata string, exp []interface{}) {
cd := common.Hex2Bytes(calldata)
sigdata, argdata := cd[:4], cd[4:]
method, err := abispec.MethodById(sigdata)
if err != nil {
t.Fatal(err)
}
data, err := method.Inputs.UnpackValues(argdata)
if err != nil {
t.Fatal(err)
}
if len(data) != len(exp) {
t.Fatalf("Mismatched length, expected %d, got %d", len(exp), len(data))
}