mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
Refactor DecodeRLP to use ReceiptForStorage method
This commit is contained in:
parent
ec41df0dba
commit
19d18006e9
1 changed files with 1 additions and 1 deletions
|
|
@ -674,7 +674,7 @@ type receiptLogs struct {
|
||||||
// DecodeRLP implements rlp.Decoder.
|
// DecodeRLP implements rlp.Decoder.
|
||||||
func (r *receiptLogs) DecodeRLP(s *rlp.Stream) error {
|
func (r *receiptLogs) DecodeRLP(s *rlp.Stream) error {
|
||||||
var rs types.ReceiptForStorage
|
var rs types.ReceiptForStorage
|
||||||
if err := s.Decode(&rs); err != nil {
|
if err := rs.DecodeRLP(s); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
r.Logs = rs.Logs
|
r.Logs = rs.Logs
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue