Skip to content
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

Update dependencies and get things compiling/passing CI again. #115

Merged
merged 7 commits into from
Nov 1, 2023

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Oct 31, 2023

  • Update versions of core libraries.
  • Use scale-value and scale-decode in place of the built-in Value type.
  • Fix various things eg new clippy lints.
  • Put a bunch of stuff into the workspace Cargo.toml for better reuse, inc all library crates used.

@jsdw jsdw changed the title Bring things uptodate Update dependencies and get things compiling again Oct 31, 2023
@jsdw jsdw changed the title Update dependencies and get things compiling again Update dependencies and get things compiling/passing CI again. Oct 31, 2023
@jsdw jsdw marked this pull request as ready for review October 31, 2023 17:08

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
desub = { path = "../../desub", features = [ "polkadot-js" ] }
desub = { workspace = true, features = [ "polkadot-js" ] }
Copy link
Member

@niklasad1 niklasad1 Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I don't like the spaces around the features but could be taken care of in another PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh yeah me neither :)

pub enum Conviction {
/// 0.1x votes, unlocked.
#[default]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL

@@ -25,6 +25,7 @@ pub fn mock_runtime(num: u32) -> RuntimeVersion {
spec_version: num,
impl_version: num,
apis: Cow::from(Vec::new()),
transaction_version: 4,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why changed?

Does scale-value need newer metadata or something?

Copy link
Collaborator Author

@jsdw jsdw Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I just didn't like that it was 4, which is identical to the version of the tx protocol (which is a different version, so easy to confuse the two!), so I set it to the version from polkadot iirc

@niklasad1 niklasad1 merged commit 6594d16 into master Nov 1, 2023
4 checks passed
@jsdw jsdw mentioned this pull request Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants