aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain')
-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)