-
Notifications
You must be signed in to change notification settings - Fork 141
Enable Coretime Integration Tests & Update Changelog for SetTopic Changes
#759
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
Enable Coretime Integration Tests & Update Changelog for SetTopic Changes
#759
Conversation
|
Review required! Latest push from author must always be reviewed |
bkontur
left a comment
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.
Please see the comment: https://github.com/polkadot-fellows/runtimes/pull/759/files#r2135462984
SetTopic Changes
|
@raymondkfcheung please check the failing test(s) |
It's due to #754. I'm searching the root causes and will fix it. |
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.
Please don't change the minimum price on the actual chains (this minimum price is important for the pricing mechanism), the test needs to be updated instead
| pub const MinimumCreditPurchase: Balance = UNITS / 10; | ||
|
|
||
| pub const MinimumEndPrice: Balance = UNITS; | ||
| pub const MinimumEndPrice: Balance = UNITS / 100_000; |
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.
| pub const MinimumEndPrice: Balance = UNITS / 100_000; | |
| pub const MinimumEndPrice: Balance = UNITS; |
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.
Reverted
| pub const BrokerPalletId: PalletId = PalletId(*b"py/broke"); | ||
| pub const MinimumCreditPurchase: Balance = UNITS / 10; | ||
| pub const MinimumEndPrice: Balance = 10 * UNITS; | ||
| pub const MinimumEndPrice: Balance = UNITS / 10_000; |
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.
| pub const MinimumEndPrice: Balance = UNITS / 10_000; | |
| pub const MinimumEndPrice: Balance = 10 * UNITS; |
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'll push these changes and the tests fix to a branch and make a PR
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.
Reverted
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.
@seadanda updated the tests according to #759 (review)
This reverts commit 034429b.
seadanda
left a comment
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.
Kind of magic numbers in the test which we can easily improve.
The point where start_sales is called has an argument which is the start price. Currently it starts with ed, but if this is below the minimum price it will just use the minimum price.
If you start sales at start_sales(RuntimeOrigin::root(), UNITS, 1)
Then mint 200 * UNITS and purchase using 100 * UNITS the numbers in the test will be self-consistent
|
/merge |
1668c86
into
polkadot-fellows:main
|
Enabled Available commands
For more information see the documentation |
This PR does two things:
CHANGELOG.mdto reflect the inclusion ofSetTopic-related changes from Polkadot SDKstable2503-5.This partially addresses paritytech/polkadot-sdk#6119 and continues the work from paritytech/polkadot-sdk#7691.