mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-25 23:27:56 +00:00
Fixed best_ethereum_block() call parameters encoding (#188)
* fixed best_ethereum_block() params encoding * updated versions
This commit is contained in:
committed by
Bastian Köcher
parent
a7208c05e0
commit
ebdfffc4b1
@@ -12,7 +12,7 @@ hex-literal = "0.2"
|
||||
|
||||
[dependencies.codec]
|
||||
package = "parity-scale-codec"
|
||||
version = "1.0.0"
|
||||
version = "1.3.1"
|
||||
default-features = false
|
||||
features = ["derive"]
|
||||
|
||||
@@ -208,6 +208,7 @@ path = "../../../primitives/ethereum-poa"
|
||||
|
||||
[build-dependencies.wasm-builder-runner]
|
||||
version = "1.0.5"
|
||||
tag = 'v2.0.0-rc4'
|
||||
package = "substrate-wasm-builder-runner"
|
||||
git = "https://github.com/paritytech/substrate/"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false }
|
||||
sp-currency-exchange = { path = "../../primitives/currency-exchange", default-features = false }
|
||||
|
||||
# Substrate Based Dependencies
|
||||
|
||||
@@ -10,7 +10,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
||||
|
||||
# General dependencies
|
||||
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.1" }
|
||||
ethereum-types = "0.9.2"
|
||||
finality-grandpa = "0.12.3"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false }
|
||||
hex-literal = "0.2"
|
||||
primitives = { package = "sp-bridge-eth-poa", path = "../../primitives/ethereum-poa", default-features = false }
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false }
|
||||
serde = { version = "1.0", optional = true }
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ edition = "2018"
|
||||
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false }
|
||||
|
||||
# Substrate Based Dependencies
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ primitive-types = { version = "0.7", default-features = false, features = ["code
|
||||
fixed-hash = { version = "0.5", default-features = false }
|
||||
impl-rlp = { version = "0.2", default-features = false }
|
||||
impl-serde = { version = "0.2.3", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false }
|
||||
rlp = { version = "0.4", default-features = false }
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
triehash = { version = "0.8.2", default-features = false }
|
||||
|
||||
@@ -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[..])?;
|
||||
|
||||
Reference in New Issue
Block a user