changed BlockPosition -> Location

This commit is contained in:
debris
2016-02-10 15:15:28 +01:00
parent dc8fa4ebfd
commit 5347d4fe43
2 changed files with 4 additions and 4 deletions

View File

@@ -166,7 +166,7 @@ impl Eth for EthClient {
fn transaction_by_block_hash_and_index(&self, params: Params) -> Result<Value, Error> {
from_params::<(H256, Index)>(params)
.and_then(|(hash, index)| match self.client.transaction(TransactionId::BlockPosition(BlockId::Hash(hash), index.value())) {
.and_then(|(hash, index)| match self.client.transaction(TransactionId::Location(BlockId::Hash(hash), index.value())) {
Some(t) => to_value(&Transaction::from(t)),
None => Ok(Value::Null)
})