Skip to content

Commit

Permalink
Update Artifacts (auto-generated) (#1844)
Browse files Browse the repository at this point in the history
* Update Artifacts (auto-generated)

* fix ui tests

---------

Co-authored-by: niklasad1 <[email protected]>
Co-authored-by: Niklas Adolfsson <[email protected]>
  • Loading branch information
3 people authored Oct 28, 2024
1 parent 251a925 commit b963b8f
Show file tree
Hide file tree
Showing 7 changed files with 179 additions and 292 deletions.
8 changes: 4 additions & 4 deletions artifacts/demo_chain_specs/polkadot.json

Large diffs are not rendered by default.

Binary file modified artifacts/polkadot_metadata_full.scale
Binary file not shown.
Binary file modified artifacts/polkadot_metadata_small.scale
Binary file not shown.
Binary file modified artifacts/polkadot_metadata_tiny.scale
Binary file not shown.
401 changes: 117 additions & 284 deletions testing/integration-tests/src/full_client/codegen/polkadot.rs

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions testing/ui-tests/src/incorrect/substitute_at_wrong_path.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,52 @@ error: Type `Event` does not exist at path `sp_runtime::multiaddress::Event`

A type with the same name is present at:
frame_system::pallet::Event
pallet_indices::pallet::Event
pallet_balances::pallet::Event
pallet_parameters::pallet::Event
pallet_transaction_payment::pallet::Event
pallet_offences::pallet::Event
pallet_session::pallet::Event
pallet_grandpa::pallet::Event
pallet_treasury::pallet::Event
pallet_conviction_voting::pallet::Event
pallet_referenda::pallet::Event
pallet_ranked_collective::pallet::Event
pallet_referenda::pallet::Event
pallet_whitelist::pallet::Event
polkadot_runtime_common::claims::pallet::Event
pallet_utility::pallet::Event
pallet_identity::pallet::Event
pallet_society::pallet::Event
pallet_recovery::pallet::Event
pallet_vesting::pallet::Event
pallet_scheduler::pallet::Event
pallet_proxy::pallet::Event
pallet_multisig::pallet::Event
pallet_preimage::pallet::Event
pallet_asset_rate::pallet::Event
pallet_bounties::pallet::Event
pallet_child_bounties::pallet::Event
pallet_nis::pallet::Event
pallet_balances::pallet::Event
polkadot_runtime_parachains::inclusion::pallet::Event
polkadot_runtime_parachains::paras::pallet::Event
polkadot_runtime_parachains::hrmp::pallet::Event
polkadot_runtime_parachains::disputes::pallet::Event
pallet_message_queue::pallet::Event
polkadot_runtime_parachains::on_demand::pallet::Event
polkadot_runtime_common::paras_registrar::pallet::Event
polkadot_runtime_common::slots::pallet::Event
polkadot_runtime_common::auctions::pallet::Event
polkadot_runtime_common::crowdloan::pallet::Event
polkadot_runtime_parachains::coretime::pallet::Event
pallet_xcm::pallet::Event
polkadot_runtime_common::identity_migrator::pallet::Event
polkadot_runtime_common::assigned_slots::pallet::Event
rococo_runtime::validator_manager::pallet::Event
pallet_state_trie_migration::pallet::Event
pallet_root_testing::pallet::Event
pallet_sudo::pallet::Event
--> src/incorrect/substitute_at_wrong_path.rs:1:1
|
1 | / #[subxt::subxt(
Expand Down
18 changes: 14 additions & 4 deletions testing/ui-tests/src/incorrect/substitute_path_not_absolute.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
error: Type Generation failed: Type substitution error: `substitute_type(with = <path>)` must be a path prefixed with 'crate::' or '::'
--> src/incorrect/substitute_path_not_absolute.rs:5:16
error: Type `DispatchInfo` does not exist at path `frame_support::dispatch::DispatchInfo`

There is no Type with name `DispatchInfo` in the provided metadata.
--> src/incorrect/substitute_path_not_absolute.rs:1:1
|
5 | with = "my_mod::DispatchInfo"
| ^^^^^^^^^^^^^^^^^^^^^^
1 | / #[subxt::subxt(
2 | | runtime_metadata_path = "../../../../artifacts/polkadot_metadata_small.scale",
3 | | substitute_type(
4 | | path = "frame_support::dispatch::DispatchInfo",
5 | | with = "my_mod::DispatchInfo"
6 | | )
7 | | )]
| |__^
|
= note: this error originates in the attribute macro `subxt::subxt` (in Nightly builds, run with -Z macro-backtrace for more info)

0 comments on commit b963b8f

Please sign in to comment.