signer: remove ineffectual assignments

This commit is contained in:
Martin Holst Swende 2018-11-07 13:45:42 +01:00
parent 1e372d7fa7
commit fc350b435e
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -38,17 +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))
}