aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/transaction.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-16 10:06:51 +0800
committerobscuren <geffobscura@gmail.com>2014-04-16 10:06:51 +0800
commit9c6aca78933c14ca107da30c4690808950718368 (patch)
treeda641b2904ea6ed05870a1ded486543529eae5a3 /ethchain/transaction.go
parentca13e3b1058f0d680b79dc1d9319d427a09493f8 (diff)
downloadgo-tangerine-9c6aca78933c14ca107da30c4690808950718368.tar.gz
go-tangerine-9c6aca78933c14ca107da30c4690808950718368.tar.zst
go-tangerine-9c6aca78933c14ca107da30c4690808950718368.zip
Merged accounts and contracts in to StateObject
* Account removed * Contract removed * Address state changed to CachedStateObject * Added StateObject
Diffstat (limited to 'ethchain/transaction.go')
-rw-r--r--ethchain/transaction.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/transaction.go b/ethchain/transaction.go
index b359c9151..78044e840 100644
--- a/ethchain/transaction.go
+++ b/ethchain/transaction.go
@@ -23,8 +23,8 @@ type Transaction struct {
contractCreation bool
}
-func NewContractCreationTx(value, gasprice *big.Int, data []byte) *Transaction {
- return &Transaction{Value: value, Gasprice: gasprice, Data: data, contractCreation: true}
+func NewContractCreationTx(value, gasprice *big.Int, script []byte, init []byte) *Transaction {
+ return &Transaction{Value: value, Gasprice: gasprice, Data: script, Init: init, contractCreation: true}
}
func NewTransactionMessage(to []byte, value, gasprice, gas *big.Int, data []byte) *Transaction {