Fixed best_ethereum_block() call parameters encoding (#188)

* fixed best_ethereum_block() params encoding

* updated versions
This commit is contained in:
Svyatoslav Nikolsky
2020-07-14 13:07:34 +03:00
committed by Bastian Köcher
parent a7208c05e0
commit ebdfffc4b1
9 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ async-stream = "0.2.0"
async-trait = "0.1.36"
backoff = "0.1"
clap = { version = "2.33.1", features = ["yaml"] }
codec = { package = "parity-scale-codec", version = "1.0.0" }
codec = { package = "parity-scale-codec", version = "1.3.1" }
env_logger = "0.7.0"
ethabi = "12.0"
ethabi-contract = "11.0"
@@ -134,7 +134,7 @@ impl SubstrateRpc for SubstrateRpcClient {
async fn best_ethereum_block(&self) -> Result<EthereumHeaderId> {
let call = ETH_API_BEST_BLOCK.to_string();
let data = Bytes("0x".into());
let data = Bytes(Vec::new());
let encoded_response = Substrate::state_call(&self.client, call, data, None).await?;
let decoded_response: (u64, sp_bridge_eth_poa::H256) = Decode::decode(&mut &encoded_response.0[..])?;