diff --git a/Cargo.lock b/Cargo.lock index 8e7bef61390f1..c98fb4b9ce298 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6790,7 +6790,7 @@ dependencies = [ "sp-version", "sp-wasm-interface 20.0.0", "substrate-test-runtime", - "subxt 0.43.0", + "subxt 0.43.1", "subxt-signer 0.43.0", "thiserror 1.0.65", "thousands", @@ -13368,7 +13368,7 @@ dependencies = [ "sp-weights", "sqlx", "substrate-prometheus-endpoint", - "subxt 0.43.0", + "subxt 0.43.1", "subxt-signer 0.43.0", "thiserror 1.0.65", "tokio", @@ -17425,7 +17425,7 @@ dependencies = [ "sp-core 28.0.0", "sp-io", "substrate-build-script-utils", - "subxt 0.43.0", + "subxt 0.43.1", "tokio", "tokio-util", "zombienet-orchestrator", @@ -20897,7 +20897,7 @@ dependencies = [ "sp-state-machine", "sp-version", "sp-wasm-interface 20.0.0", - "subxt 0.43.0", + "subxt 0.43.1", "thiserror 1.0.65", ] @@ -24888,7 +24888,7 @@ dependencies = [ "anyhow", "env_logger 0.11.3", "log", - "subxt 0.43.0", + "subxt 0.43.1", "subxt-signer 0.43.0", "tokio", "zombienet-configuration", @@ -24953,9 +24953,9 @@ dependencies = [ [[package]] name = "subxt" -version = "0.43.0" +version = "0.43.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74791ddeaaa6de42e7cc8a715c83eb73303f513f90af701fd07eb2caad92ed84" +checksum = "f8c6dc0f90e23c521465b8f7e026af04a48cc6f00c51d88a8d313d33096149de" dependencies = [ "async-trait", "derive-where", @@ -24976,7 +24976,7 @@ dependencies = [ "sp-crypto-hashing 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "subxt-core 0.43.0", "subxt-lightclient 0.43.0", - "subxt-macro 0.43.0", + "subxt-macro 0.43.1", "subxt-metadata 0.43.0", "subxt-rpcs 0.43.0", "thiserror 2.0.12", @@ -25134,9 +25134,9 @@ dependencies = [ [[package]] name = "subxt-macro" -version = "0.43.0" +version = "0.43.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69516e8ff0e9340a0f21b8398da7f997571af4734ee81deada5150a2668c8443" +checksum = "c269228a2e5de4c0c61ed872b701967ee761df0f167d5b91ecec1185bca65793" dependencies = [ "darling 0.20.10", "parity-scale-codec", @@ -28713,7 +28713,7 @@ dependencies = [ "serde_json", "sha2 0.10.9", "sp-core 36.1.0", - "subxt 0.43.0", + "subxt 0.43.1", "subxt-signer 0.43.0", "thiserror 1.0.65", "tokio", @@ -28776,7 +28776,7 @@ dependencies = [ "async-trait", "futures", "lazy_static", - "subxt 0.43.0", + "subxt 0.43.1", "subxt-signer 0.43.0", "tokio", "zombienet-configuration", diff --git a/Cargo.toml b/Cargo.toml index 6ca576eb3cef8..135020c67e0db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1415,7 +1415,7 @@ substrate-test-runtime-client = { path = "substrate/test-utils/runtime/client" } substrate-test-runtime-transaction-pool = { path = "substrate/test-utils/runtime/transaction-pool" } substrate-test-utils = { path = "substrate/test-utils" } substrate-wasm-builder = { path = "substrate/utils/wasm-builder", default-features = false } -subxt = { version = "0.43", default-features = false } +subxt = { version = "0.43.1", default-features = false } subxt-metadata = { version = "0.43", default-features = false } subxt-signer = { version = "0.43" } syn = { version = "2.0.87" } diff --git a/prdoc/pr_10580.prdoc b/prdoc/pr_10580.prdoc new file mode 100644 index 0000000000000..98feed88eb08b --- /dev/null +++ b/prdoc/pr_10580.prdoc @@ -0,0 +1,20 @@ +title: Fix eth-rpc publish +doc: +- audience: Runtime Dev + description: |- + Use the update subxt macro to generate the metadata in OUT_DIR; + not doing so generates the following error when we try to publish the package: + + + ``` + error: failed to publish to registry at https://crates.io + + Caused by: + the remote server responded with an error (status 403 Forbidden): this crate exists but you don't seem to be an owner. If you believe this is a mistake, perhaps you need to accept an invitation to be an owner before publishing. + + ``` + + see related subxt changes: https://github.com/paritytech/subxt/pull/2142 +crates: +- name: pallet-revive-eth-rpc + bump: patch diff --git a/substrate/frame/revive/rpc/build.rs b/substrate/frame/revive/rpc/build.rs index 5315bd4a0474f..b37b23d4562f5 100644 --- a/substrate/frame/revive/rpc/build.rs +++ b/substrate/frame/revive/rpc/build.rs @@ -57,6 +57,8 @@ fn generate_metadata_file() { ext.execute_with(|| { let metadata = revive_dev_runtime::Runtime::metadata_at_version(16).unwrap(); let bytes: &[u8] = &metadata; - fs::write("revive_chain.scale", bytes).unwrap(); + let out_dir = std::env::var("OUT_DIR").expect("OUT_DIR not set"); + let out_path = std::path::Path::new(&out_dir).join("revive_chain.scale"); + fs::write(out_path, bytes).unwrap(); }); } diff --git a/substrate/frame/revive/rpc/src/subxt_client.rs b/substrate/frame/revive/rpc/src/subxt_client.rs index bd9666aba8b3e..f36a565928e49 100644 --- a/substrate/frame/revive/rpc/src/subxt_client.rs +++ b/substrate/frame/revive/rpc/src/subxt_client.rs @@ -20,7 +20,7 @@ pub use subxt::config::PolkadotConfig as SrcChainConfig; #[subxt::subxt( - runtime_metadata_path = "revive_chain.scale", + runtime_metadata_path = "$OUT_DIR/revive_chain.scale", // TODO remove once subxt use the same U256 type substitute_type( path = "primitive_types::U256",