-
Notifications
You must be signed in to change notification settings - Fork 264
Support v16 metadata and use it by default if it's available #1999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9f926ea
Support v16 metadata and use it by default if it's available
jsdw 5d730c8
lockfile
jsdw fc19308
fix blocks test; new transaction extension in kitchensink runtime
jsdw 003af54
Bump scale-typegen to 0.11.1 to cater for Duration prelude type
jsdw 2c5b10e
fmt
jsdw 40ec86e
Fix no-std test building
jsdw cd34332
Cargo update and bump substrate deps
jsdw 9221787
Update test and no-std deps
jsdw 3383a4e
fmt
jsdw e18e764
fix test
jsdw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
// see LICENSE for license details. | ||
|
||
use crate::{ | ||
node_runtime::{self, balances, runtime_types, system}, | ||
node_runtime::{self, balances, system}, | ||
subxt_test, test_context, | ||
}; | ||
use codec::Decode; | ||
|
@@ -282,30 +282,10 @@ async fn storage_total_issuance() { | |
|
||
#[subxt_test] | ||
async fn storage_balance_lock() -> Result<(), subxt::Error> { | ||
let bob_signer = dev::bob(); | ||
let bob: AccountId32 = dev::bob().public_key().into(); | ||
let ctx = test_context().await; | ||
let api = ctx.client(); | ||
|
||
let tx = node_runtime::tx().staking().bond( | ||
100_000_000_000_000, | ||
runtime_types::pallet_staking::RewardDestination::Stash, | ||
); | ||
|
||
let signed_extrinsic = api | ||
.tx() | ||
.create_signed(&tx, &bob_signer, Default::default()) | ||
.await?; | ||
|
||
signed_extrinsic | ||
.submit_and_watch() | ||
.await | ||
.unwrap() | ||
.wait_for_finalized_success() | ||
.await? | ||
.find_first::<system::events::ExtrinsicSuccess>()? | ||
.expect("No ExtrinsicSuccess Event found"); | ||
|
||
Comment on lines
-290
to
-308
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is already a hold now so no need to artifically create one. |
||
let holds_addr = node_runtime::storage().balances().holds(bob); | ||
|
||
let holds = api | ||
|
@@ -318,7 +298,7 @@ async fn storage_balance_lock() -> Result<(), subxt::Error> { | |
|
||
// There is now a hold on the balance being staked | ||
assert_eq!(holds.len(), 1); | ||
assert_eq!(holds[0].amount, 100_000_000_000_000); | ||
assert_eq!(holds[0].amount, 327_000_000_000_000); | ||
|
||
Ok(()) | ||
} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this here so that we have only one array of supported versions that's used anywhere we need it