aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-02 20:08:54 +0800
committerobscuren <geffobscura@gmail.com>2014-05-02 20:08:54 +0800
commit1f6df0cd522842095c5ca723d2e11fc6b97b8b6a (patch)
tree0ad04e395d503235daf833aa3d503679ba8c8d48 /ethchain
parente798f221dd9d6aaffaa709d559f01a41447e4896 (diff)
downloadgo-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.go4
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()