Fix build.

This commit is contained in:
Gav Wood 2016-12-05 10:55:53 -08:00
parent 5e1fdc4b11
commit ff7b918d82
No known key found for this signature in database
GPG Key ID: C49C1ACA1CC9B252
2 changed files with 2 additions and 2 deletions

View File

@ -305,7 +305,7 @@ impl SignedTransaction {
pub fn standard_v(&self) -> u8 { match self.v { v if v == 27 || v == 28 || v > 36 => ((v - 1) % 2) as u8, _ => 4 } } pub fn standard_v(&self) -> u8 { match self.v { v if v == 27 || v == 28 || v > 36 => ((v - 1) % 2) as u8, _ => 4 } }
/// The `v` value that appears in the RLP. /// The `v` value that appears in the RLP.
pub fn original_v(&self) -> u8 { self.v } pub fn original_v(&self) -> u64 { self.v }
/// The network ID, or `None` if this is a global transaction. /// The network ID, or `None` if this is a global transaction.
pub fn network_id(&self) -> Option<u64> { pub fn network_id(&self) -> Option<u64> {

View File

@ -59,7 +59,7 @@ pub struct Transaction {
pub public_key: Option<H512>, pub public_key: Option<H512>,
/// The network id of the transaction, if any. /// The network id of the transaction, if any.
#[serde(rename="networkId")] #[serde(rename="networkId")]
pub network_id: Option<u8>, pub network_id: Option<u64>,
/// The standardised V field of the signature (0 or 1). /// The standardised V field of the signature (0 or 1).
#[serde(rename="standardV")] #[serde(rename="standardV")]
pub standard_v: U256, pub standard_v: U256,