diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-02 20:08:54 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-02 20:08:54 +0800 |
commit | 1f6df0cd522842095c5ca723d2e11fc6b97b8b6a (patch) | |
tree | 0ad04e395d503235daf833aa3d503679ba8c8d48 /ethchain | |
parent | e798f221dd9d6aaffaa709d559f01a41447e4896 (diff) | |
download | go-tangerine-1f6df0cd522842095c5ca723d2e11fc6b97b8b6a.tar go-tangerine-1f6df0cd522842095c5ca723d2e11fc6b97b8b6a.tar.gz go-tangerine-1f6df0cd522842095c5ca723d2e11fc6b97b8b6a.tar.bz2 go-tangerine-1f6df0cd522842095c5ca723d2e11fc6b97b8b6a.tar.lz go-tangerine-1f6df0cd522842095c5ca723d2e11fc6b97b8b6a.tar.xz go-tangerine-1f6df0cd522842095c5ca723d2e11fc6b97b8b6a.tar.zst go-tangerine-1f6df0cd522842095c5ca723d2e11fc6b97b8b6a.zip |
Added receipts for tx creation
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/transaction.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ethchain/transaction.go b/ethchain/transaction.go index 421f26c98..e93e610be 100644 --- a/ethchain/transaction.go +++ b/ethchain/transaction.go @@ -59,6 +59,10 @@ func (tx *Transaction) IsContract() bool { return tx.contractCreation } +func (tx *Transaction) CreationAddress() []byte { + return tx.Hash()[12:] +} + func (tx *Transaction) Signature(key []byte) []byte { hash := tx.Hash() |