aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/transaction.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-20 17:19:07 +0800
committerobscuren <geffobscura@gmail.com>2014-05-20 17:19:07 +0800
commitfd19142c0db3d2b6651989f5389944f3e211d84f (patch)
tree96916597bc7366fad5043acb6df7a2711675f504 /ethchain/transaction.go
parenta2fb265563a3a6eb80efc5720bb0c6f3fec6f397 (diff)
downloadgo-tangerine-fd19142c0db3d2b6651989f5389944f3e211d84f.tar.gz
go-tangerine-fd19142c0db3d2b6651989f5389944f3e211d84f.tar.zst
go-tangerine-fd19142c0db3d2b6651989f5389944f3e211d84f.zip
No longer store script directly in the state tree
Diffstat (limited to 'ethchain/transaction.go')
-rw-r--r--ethchain/transaction.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/transaction.go b/ethchain/transaction.go
index e93e610be..8ea4704cb 100644
--- a/ethchain/transaction.go
+++ b/ethchain/transaction.go
@@ -60,7 +60,7 @@ func (tx *Transaction) IsContract() bool {
}
func (tx *Transaction) CreationAddress() []byte {
- return tx.Hash()[12:]
+ return ethutil.Sha3Bin(ethutil.NewValue([]interface{}{tx.Sender(), tx.Nonce}).Encode())[12:]
}
func (tx *Transaction) Signature(key []byte) []byte {