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

Fix E2E tests by updating Weight type #1496

Merged
merged 6 commits into from
Nov 15, 2022
Merged

Fix E2E tests by updating Weight type #1496

merged 6 commits into from
Nov 15, 2022

Conversation

ascjones
Copy link
Collaborator

@ascjones ascjones commented Nov 15, 2022

  • Updates to use new sp_weights::Weight type for gas_limit.
  • Depends on new versions of sp-core etc and subxt

Since the e2e test crate is already using git dependencies and is not currently released to crates.io, I am happy to convert the substrate crate dependencies to git. Once all dependencies are released to crates.io we can use those, and then this crate can be released.

@athei
Copy link
Contributor

athei commented Nov 15, 2022

Don't the call sides need to be fixed now that the tests are required to pass Weight instead of u64?

@ascjones
Copy link
Collaborator Author

Don't the call sides need to be fixed now that the tests are required to pass Weight instead of u64?

The changes here already change the call argument to Weight?

@athei
Copy link
Contributor

athei commented Nov 15, 2022

Was thinking about the actual tests in examples which might pass Weight.

@ascjones
Copy link
Collaborator Author

ascjones commented Nov 15, 2022

An auto dry run is performed rather than the user supplying it as a parameter https://github.com/paritytech/ink/blob/66c05c9b0a9139990fc2ac8e81090f668ea9e053/crates/e2e/src/client.rs#L574

@ascjones ascjones marked this pull request as ready for review November 15, 2022 16:59
@ascjones ascjones requested review from a team, cmichi and HCastano as code owners November 15, 2022 16:59
Copy link
Contributor

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

Nice!

I tested this with the v0.22.1 release of the contracts node and it worked 👍

@HCastano HCastano changed the title Fix e2e tests Fix E2E tests by updating Weight type Nov 15, 2022
@HCastano HCastano merged commit 4564d76 into master Nov 15, 2022
@HCastano HCastano deleted the aj/fix-e2e-tests branch November 15, 2022 19:45
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.

3 participants