correct indentation
This commit is contained in:
parent
3f89362630
commit
a272f8570c
@ -262,9 +262,9 @@ const UNSUPPORTED_REQUEST_CODE: i64 = -32000;
|
|||||||
|
|
||||||
fn make_unsupported_err() -> Error {
|
fn make_unsupported_err() -> Error {
|
||||||
Error {
|
Error {
|
||||||
code: ErrorCode::ServerError(UNSUPPORTED_REQUEST_CODE),
|
code: ErrorCode::ServerError(UNSUPPORTED_REQUEST_CODE),
|
||||||
message: "Unsupported request.".into(),
|
message: "Unsupported request.".into(),
|
||||||
data: None
|
data: None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -362,8 +362,8 @@ impl<C, S, A, M, EM> Eth for EthClient<C, S, A, M, EM> where
|
|||||||
.and_then(|(address, position, block_number,)| match block_number {
|
.and_then(|(address, position, block_number,)| match block_number {
|
||||||
BlockNumber::Pending => to_value(&U256::from(take_weak!(self.miner).storage_at(&*take_weak!(self.client), &address, &H256::from(position)))),
|
BlockNumber::Pending => to_value(&U256::from(take_weak!(self.miner).storage_at(&*take_weak!(self.client), &address, &H256::from(position)))),
|
||||||
id => match take_weak!(self.client).storage_at(&address, &H256::from(position), id.into()) {
|
id => match take_weak!(self.client).storage_at(&address, &H256::from(position), id.into()) {
|
||||||
Some(s) => to_value(&U256::from(s)),
|
Some(s) => to_value(&U256::from(s)),
|
||||||
None => Err(make_unsupported_err()), // None is only returned on unsupported requests.
|
None => Err(make_unsupported_err()), // None is only returned on unsupported requests.
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user