diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-25 18:22:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-25 18:22:18 +0800 |
commit | 4b8c50e2cde130bf278b14040a267aab573dd53e (patch) | |
tree | c563b2a16e8be990ba07784f82af55d73f852de0 /ethchain/transaction.go | |
parent | 1e7b3cbb1343d5362b8ed55d06b1927171f56a41 (diff) | |
download | dexon-4b8c50e2cde130bf278b14040a267aab573dd53e.tar.gz dexon-4b8c50e2cde130bf278b14040a267aab573dd53e.tar.zst dexon-4b8c50e2cde130bf278b14040a267aab573dd53e.zip |
Deprication
Diffstat (limited to 'ethchain/transaction.go')
-rw-r--r-- | ethchain/transaction.go | 5 |
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) |