Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,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" }
Expand Down
20 changes: 20 additions & 0 deletions prdoc/pr_10580.prdoc
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion substrate/frame/revive/rpc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
2 changes: 1 addition & 1 deletion substrate/frame/revive/rpc/src/subxt_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading