aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/pack.go
diff options
context:
space:
mode:
authorRobert Zaremba <robert.zaremba@scale-it.pl>2017-11-10 09:48:51 +0800
committerMartin Holst Swende <martin@swende.se>2017-12-21 22:14:50 +0800
commit95461e8b2289c1b8f6c588087a8de5f4f64a749c (patch)
treee1763fdc4d931bc1a9882538cc51283352dccc2b /accounts/abi/pack.go
parent0ed8b838a991f81f79cc6ed4fa961c563203a7a2 (diff)
downloadgo-tangerine-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar
go-tangerine-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.gz
go-tangerine-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.bz2
go-tangerine-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.lz
go-tangerine-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.xz
go-tangerine-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.zst
go-tangerine-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.go3
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)