Fixed other types
This commit is contained in:
parent
5fe54901e7
commit
6795068ea4
@ -233,7 +233,7 @@ impl Decodable for BlockReceipts {
|
|||||||
|
|
||||||
impl Encodable for BlockReceipts {
|
impl Encodable for BlockReceipts {
|
||||||
fn rlp_append(&self, s: &mut RlpStream) {
|
fn rlp_append(&self, s: &mut RlpStream) {
|
||||||
s.append(&self.receipts);
|
Encodable::rlp_append(&self.receipts, s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ impl Encodable for CallType {
|
|||||||
CallType::CallCode => 2,
|
CallType::CallCode => 2,
|
||||||
CallType::DelegateCall => 3,
|
CallType::DelegateCall => 3,
|
||||||
};
|
};
|
||||||
s.append(&v);
|
Encodable::rlp_append(&v, s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
//! Trace errors.
|
//! Trace errors.
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use rlp::{Encodable, RlpStream, Decodable, Decoder, DecoderError, Stream, View};
|
use rlp::{RlpEncodable, Encodable, RlpStream, Decodable, Decoder, DecoderError, View};
|
||||||
use evm::Error as EvmError;
|
use evm::Error as EvmError;
|
||||||
|
|
||||||
/// Trace evm errors.
|
/// Trace evm errors.
|
||||||
@ -79,7 +79,7 @@ impl Encodable for Error {
|
|||||||
OutOfStack => 4,
|
OutOfStack => 4,
|
||||||
Internal => 5,
|
Internal => 5,
|
||||||
};
|
};
|
||||||
s.append(&value);
|
RlpEncodable::rlp_append(&value, s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ impl FlatTransactionTraces {
|
|||||||
|
|
||||||
impl Encodable for FlatTransactionTraces {
|
impl Encodable for FlatTransactionTraces {
|
||||||
fn rlp_append(&self, s: &mut RlpStream) {
|
fn rlp_append(&self, s: &mut RlpStream) {
|
||||||
s.append(&self.0);
|
Encodable::rlp_append(&self.0, s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ impl FlatBlockTraces {
|
|||||||
|
|
||||||
impl Encodable for FlatBlockTraces {
|
impl Encodable for FlatBlockTraces {
|
||||||
fn rlp_append(&self, s: &mut RlpStream) {
|
fn rlp_append(&self, s: &mut RlpStream) {
|
||||||
s.append(&self.0);
|
Encodable::rlp_append(&self.0, s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user