diff options
author | Robert Zaremba <robert.zaremba@scale-it.pl> | 2017-11-10 09:48:51 +0800 |
---|---|---|
committer | Martin Holst Swende <martin@swende.se> | 2017-12-21 22:14:50 +0800 |
commit | 95461e8b2289c1b8f6c588087a8de5f4f64a749c (patch) | |
tree | e1763fdc4d931bc1a9882538cc51283352dccc2b /accounts/abi/pack.go | |
parent | 0ed8b838a991f81f79cc6ed4fa961c563203a7a2 (diff) | |
download | dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.gz dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.bz2 dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.lz dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.xz dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.zst dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.zip |
accounts/abi: satisfy most of the linter warnings
+ adding missing comments
+ small cleanups which won't significantly change
function body.
+ unify Method receiver name
Diffstat (limited to 'accounts/abi/pack.go')
-rw-r--r-- | accounts/abi/pack.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/accounts/abi/pack.go b/accounts/abi/pack.go index 072e80536..36c58265b 100644 --- a/accounts/abi/pack.go +++ b/accounts/abi/pack.go @@ -48,9 +48,8 @@ func packElement(t Type, reflectValue reflect.Value) []byte { case BoolTy: if reflectValue.Bool() { return math.PaddedBigBytes(common.Big1, 32) - } else { - return math.PaddedBigBytes(common.Big0, 32) } + return math.PaddedBigBytes(common.Big0, 32) case BytesTy: if reflectValue.Kind() == reflect.Array { reflectValue = mustArrayToByteSlice(reflectValue) |