aboutsummaryrefslogtreecommitdiffstats
path: root/common/bytes.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-16 18:59:52 +0800
committerobscuren <geffobscura@gmail.com>2015-03-16 18:59:52 +0800
commitf486c0ae563eaf89a601ca5d60f30be96db2e69a (patch)
treea134ae6e38b90a268d91c61eab4ceb17856f2144 /common/bytes.go
parentb5234413611ce5984292f85a01de1f56c045b490 (diff)
downloaddexon-f486c0ae563eaf89a601ca5d60f30be96db2e69a.tar.gz
dexon-f486c0ae563eaf89a601ca5d60f30be96db2e69a.tar.zst
dexon-f486c0ae563eaf89a601ca5d60f30be96db2e69a.zip
new type + additional methods
Diffstat (limited to 'common/bytes.go')
-rw-r--r--common/bytes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/bytes.go b/common/bytes.go
index 4aef9a223..5e553d23c 100644
--- a/common/bytes.go
+++ b/common/bytes.go
@@ -211,7 +211,7 @@ func RightPadString(str string, l int) string {
}
-func Address(slice []byte) (addr []byte) {
+func ToAddress(slice []byte) (addr []byte) {
if len(slice) < 20 {
addr = LeftPadBytes(slice, 20)
} else if len(slice) > 20 {