diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-28 18:39:41 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-28 18:39:41 +0800 |
commit | 8278ba5e45bc02c8d21416f343b0ae38b5a6431c (patch) | |
tree | 9312c06229c3ddfa7d8a288b0de3dbfe8184ea4b | |
parent | 6e98e5709a68b1a84e9c3b391eab4a3546c4225d (diff) | |
parent | 2fec1af27509ce26007224b3665d988ac211d023 (diff) | |
download | go-tangerine-8278ba5e45bc02c8d21416f343b0ae38b5a6431c.tar go-tangerine-8278ba5e45bc02c8d21416f343b0ae38b5a6431c.tar.gz go-tangerine-8278ba5e45bc02c8d21416f343b0ae38b5a6431c.tar.bz2 go-tangerine-8278ba5e45bc02c8d21416f343b0ae38b5a6431c.tar.lz go-tangerine-8278ba5e45bc02c8d21416f343b0ae38b5a6431c.tar.xz go-tangerine-8278ba5e45bc02c8d21416f343b0ae38b5a6431c.tar.zst go-tangerine-8278ba5e45bc02c8d21416f343b0ae38b5a6431c.zip |
Merge branch 'develop' of github.com-obscure:ethereum/eth-go into develop
-rw-r--r-- | ethpub/types.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ethpub/types.go b/ethpub/types.go index 348ae3f25..87d4ef112 100644 --- a/ethpub/types.go +++ b/ethpub/types.go @@ -70,6 +70,10 @@ type PTx struct { func NewPTx(tx *ethchain.Transaction) *PTx { hash := hex.EncodeToString(tx.Hash()) receiver := hex.EncodeToString(tx.Recipient) + + if receiver == "" { + receiver = hex.EncodeToString(tx.CreationAddress()) + } sender := hex.EncodeToString(tx.Sender()) data := strings.Join(ethchain.Disassemble(tx.Data), "\n") |