diff options
Diffstat (limited to 'chain/transaction.go')
-rw-r--r-- | chain/transaction.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/chain/transaction.go b/chain/transaction.go index d81a0ea1b..47257a3f0 100644 --- a/chain/transaction.go +++ b/chain/transaction.go @@ -79,12 +79,7 @@ func (tx *Transaction) IsContract() bool { func (tx *Transaction) CreationAddress(state *state.State) []byte { // Generate a new address - addr := crypto.Sha3(ethutil.NewValue([]interface{}{tx.Sender(), tx.Nonce}).Encode())[12:] - //for i := uint64(0); state.GetStateObject(addr) != nil; i++ { - // addr = crypto.Sha3(ethutil.NewValue([]interface{}{tx.Sender(), tx.Nonce + i}).Encode())[12:] - //} - - return addr + return crypto.Sha3(ethutil.NewValue([]interface{}{tx.Sender(), tx.Nonce}).Encode())[12:] } func (tx *Transaction) Signature(key []byte) []byte { |