mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 06:21:11 +00:00
Update trybuild to the latest version (#785)
* Update to trybuild version 1.0.76 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * tests: Adjust testing to the new trybuild location Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -9,7 +9,7 @@ publish = false
|
||||
[dependencies]
|
||||
|
||||
[dev-dependencies]
|
||||
trybuild = "=1.0.75"
|
||||
trybuild = "1.0.76"
|
||||
scale-info = { version = "2.3.0", features = ["bit-vec"] }
|
||||
frame-metadata = "15.0.0"
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#[subxt::subxt(runtime_metadata_path = "../../../artifacts/polkadot_metadata.scale")]
|
||||
#[subxt::subxt(runtime_metadata_path = "../../../../artifacts/polkadot_metadata.scale")]
|
||||
pub mod node_runtime {
|
||||
pub struct SomeStruct;
|
||||
pub enum SomeEnum {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#[subxt::subxt(runtime_metadata_path = "../../../artifacts/polkadot_metadata.scale")]
|
||||
#[subxt::subxt(runtime_metadata_path = "../../../../artifacts/polkadot_metadata.scale")]
|
||||
pub mod node_runtime {
|
||||
#[subxt::subxt(substitute_type = "sp_arithmetic::per_things::Perbill")]
|
||||
use sp_runtime::Perbill;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#[subxt::subxt(
|
||||
runtime_metadata_path = "../../../artifacts/polkadot_metadata.scale",
|
||||
runtime_metadata_path = "../../../../artifacts/polkadot_metadata.scale",
|
||||
runtime_metadata_url = "wss://rpc.polkadot.io:443"
|
||||
)]
|
||||
pub mod node_runtime {}
|
||||
|
||||
@@ -2,7 +2,7 @@ error: Only one of 'runtime_metadata_path' or 'runtime_metadata_url' can be prov
|
||||
--> src/incorrect/url_and_path_provided.rs:1:1
|
||||
|
|
||||
1 | / #[subxt::subxt(
|
||||
2 | | runtime_metadata_path = "../../../artifacts/polkadot_metadata.scale",
|
||||
2 | | runtime_metadata_path = "../../../../artifacts/polkadot_metadata.scale",
|
||||
3 | | runtime_metadata_url = "wss://rpc.polkadot.io:443"
|
||||
4 | | )]
|
||||
| |__^
|
||||
|
||||
Reference in New Issue
Block a user