diff options
author | obscuren <geffobscura@gmail.com> | 2014-06-15 06:10:42 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-06-15 06:10:42 +0800 |
commit | 5871dbaf5a832a4fd34bdb22cf479d6b0b4da9fb (patch) | |
tree | 5caf4af617cd7e62d06a3118affe42f8d5dc7926 /ethchain | |
parent | b0e023e43248d09cb273d5b6025d28ee718151c0 (diff) | |
download | dexon-5871dbaf5a832a4fd34bdb22cf479d6b0b4da9fb.tar.gz dexon-5871dbaf5a832a4fd34bdb22cf479d6b0b4da9fb.tar.zst dexon-5871dbaf5a832a4fd34bdb22cf479d6b0b4da9fb.zip |
Set contract addr for new transactions
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/transaction.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/transaction.go b/ethchain/transaction.go index 7aaab2fd1..3d52e4f73 100644 --- a/ethchain/transaction.go +++ b/ethchain/transaction.go @@ -25,7 +25,7 @@ type Transaction struct { } func NewContractCreationTx(value, gas, gasPrice *big.Int, script []byte) *Transaction { - return &Transaction{Value: value, Gas: gas, GasPrice: gasPrice, Data: script, contractCreation: true} + return &Transaction{Recipient: ContractAddr, Value: value, Gas: gas, GasPrice: gasPrice, Data: script, contractCreation: true} } func NewTransactionMessage(to []byte, value, gas, gasPrice *big.Int, data []byte) *Transaction { |