aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/transaction.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-25 18:22:18 +0800
committerobscuren <geffobscura@gmail.com>2014-02-25 18:22:18 +0800
commit4b8c50e2cde130bf278b14040a267aab573dd53e (patch)
treec563b2a16e8be990ba07784f82af55d73f852de0 /ethchain/transaction.go
parent1e7b3cbb1343d5362b8ed55d06b1927171f56a41 (diff)
downloaddexon-4b8c50e2cde130bf278b14040a267aab573dd53e.tar.gz
dexon-4b8c50e2cde130bf278b14040a267aab573dd53e.tar.zst
dexon-4b8c50e2cde130bf278b14040a267aab573dd53e.zip
Deprication
Diffstat (limited to 'ethchain/transaction.go')
-rw-r--r--ethchain/transaction.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethchain/transaction.go b/ethchain/transaction.go
index 39b2bda94..57df9cdc4 100644
--- a/ethchain/transaction.go
+++ b/ethchain/transaction.go
@@ -29,7 +29,12 @@ func NewTransaction(to []byte, value *big.Int, data []string) *Transaction {
return &tx
}
+// XXX Deprecated
func NewTransactionFromData(data []byte) *Transaction {
+ return NewTransactionFromBytes(data)
+}
+
+func NewTransactionFromBytes(data []byte) *Transaction {
tx := &Transaction{}
tx.RlpDecode(data)