aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-19 18:51:38 +0800
committerobscuren <geffobscura@gmail.com>2015-02-19 18:51:38 +0800
commit0057bb4ef6d55b5d580a4e0421526a477ef93de9 (patch)
treec42682f9399bc59d9a1623a4b159231e434fa8d5 /xeth
parent03b8c6841be08f19db0f98cea6d0a6f4fd64736f (diff)
downloaddexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.tar
dexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.tar.gz
dexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.tar.bz2
dexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.tar.lz
dexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.tar.xz
dexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.tar.zst
dexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.zip
WIP QT Clipboard
Diffstat (limited to 'xeth')
-rw-r--r--xeth/types.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xeth/types.go b/xeth/types.go
index a903fccbb..5b2d16018 100644
--- a/xeth/types.go
+++ b/xeth/types.go
@@ -150,7 +150,7 @@ type Transaction struct {
func NewTx(tx *types.Transaction) *Transaction {
hash := toHex(tx.Hash())
receiver := toHex(tx.To())
- if receiver == "0000000000000000000000000000000000000000" {
+ if len(receiver) == 0 {
receiver = toHex(core.AddressFromMessage(tx))
}
sender := toHex(tx.From())