Deprication

This commit is contained in:
obscuren 2014-02-25 11:22:18 +01:00
parent 1e7b3cbb13
commit 4b8c50e2cd

View File

@ -29,7 +29,12 @@ func NewTransaction(to []byte, value *big.Int, data []string) *Transaction {
return &tx return &tx
} }
// XXX Deprecated
func NewTransactionFromData(data []byte) *Transaction { func NewTransactionFromData(data []byte) *Transaction {
return NewTransactionFromBytes(data)
}
func NewTransactionFromBytes(data []byte) *Transaction {
tx := &Transaction{} tx := &Transaction{}
tx.RlpDecode(data) tx.RlpDecode(data)