aboutsummaryrefslogtreecommitdiffstats
path: root/signer/core
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2018-11-07 20:55:54 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-11-07 20:55:54 +0800
commit5b74bb6445a7fb7220da74c6c6e891c20e9a26dc (patch)
treef574f0b0f8f3763f0fb524664e630ec8a1f73f3f /signer/core
parenteea3ae42a3d9bcbd33474c0e482754c5196a469f (diff)
downloadgo-tangerine-5b74bb6445a7fb7220da74c6c6e891c20e9a26dc.tar.gz
go-tangerine-5b74bb6445a7fb7220da74c6c6e891c20e9a26dc.tar.zst
go-tangerine-5b74bb6445a7fb7220da74c6c6e891c20e9a26dc.zip
signer: remove ineffectual assignments (#18049)
* signer: remove ineffectual assignments * signer: remove ineffectual assignments
Diffstat (limited to 'signer/core')
-rw-r--r--signer/core/abihelper_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/signer/core/abihelper_test.go b/signer/core/abihelper_test.go
index 2afeec73e..878210be1 100644
--- a/signer/core/abihelper_test.go
+++ b/signer/core/abihelper_test.go
@@ -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))
}