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

Make system properties an arbitrary JSON object, plus CI fixes #349

Merged
merged 8 commits into from
Dec 2, 2021

Conversation

ascjones
Copy link
Contributor

@ascjones ascjones commented Dec 2, 2021

Closes #316.

System properties are just an arbitrary JSON object defined in the chainspec, so this should be reflected in subxt. See https://github.com/paritytech/substrate/blob/b7409a2257c7c231b485ee827daa73d05d303047/client/chain-spec/src/lib.rs#L148

Additionally to satisfy CI:

  • Makes timestamp test not flaky
  • Fixes clippy errors and warnings

@niklasad1
Copy link
Member

I could, but the type is specified to be Map on the substrate side so I think it should mirror that. I think it would need properties, it doesn't really make sense to have discrete values for the properties.

I don't think it matters anyway, let's ignore my comment :D

@ascjones ascjones mentioned this pull request Dec 2, 2021
18 tasks
@ascjones ascjones changed the title Make system properties an arbitrary JSON object Make system properties an arbitrary JSON object, plus CI fixes Dec 2, 2021
@ascjones ascjones merged commit e05d24b into master Dec 2, 2021
@ascjones ascjones deleted the aj-system-properties branch December 2, 2021 17:02
0623forbidden pushed a commit to DEIPworld/substrate-subxt that referenced this pull request Feb 15, 2022
…ytech#349)

* Make system properties an arbitrary JSON object

* Add comment

* Make timestamp test more reliable

* Fmt

* Update src/client.rs

Co-authored-by: David <[email protected]>

* Update src/client.rs

Co-authored-by: David <[email protected]>

* Fix clippy errors and warnings

* Fix tests

Co-authored-by: David <[email protected]>
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.

System properties should be optional
4 participants