diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-01 23:47:32 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-01 23:47:32 +0800 |
commit | a8b39b5cc0dff46e5834826fac6f37e39ee4c3b3 (patch) | |
tree | 511d91e35f58322824bd187e5363f0d420f6e5b4 /core | |
parent | ab85a3593a66817eae1ada79ec6dee62891c4360 (diff) | |
parent | 81e2124ea20503b70fac726868e3bbefd8c02d73 (diff) | |
download | go-tangerine-a8b39b5cc0dff46e5834826fac6f37e39ee4c3b3.tar.gz go-tangerine-a8b39b5cc0dff46e5834826fac6f37e39ee4c3b3.tar.zst go-tangerine-a8b39b5cc0dff46e5834826fac6f37e39ee4c3b3.zip |
Merge pull request #1541 from bas-vk/issue1518
Improved error handling for NewTransactionFromBytes
Diffstat (limited to 'core')
-rw-r--r-- | core/types/transaction.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go index cc1793112..85b4c6119 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -97,15 +97,6 @@ func NewTransaction(nonce uint64, to common.Address, amount, gasLimit, gasPrice return &Transaction{data: d} } -func NewTransactionFromBytes(data []byte) *Transaction { - // TODO: remove this function if possible. callers would - // much better off decoding into transaction directly. - // it's not that hard. - tx := new(Transaction) - rlp.DecodeBytes(data, tx) - return tx -} - func (tx *Transaction) EncodeRLP(w io.Writer) error { return rlp.Encode(w, &tx.data) } |