-
Notifications
You must be signed in to change notification settings - Fork 0
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
Migrate provided id test #21
Conversation
d252c7e
to
f5c16f7
Compare
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.
Looks good to me overall, but I have got two comments.
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.
In this file, there are still some places that need to be modified.
@@ -154,7 +149,7 @@ export const cancelTaskAndVerify = async (automationTimeApi: AutomationTimeApi, | |||
|
|||
expect(section).toEqual(SECTION_NAME); | |||
expect(method).toEqual('cancelTask'); | |||
expect(taskIdOnChain.toString()).toEqual(taskID); | |||
expect(new Buffer(taskIdOnChain).toString()).toEqual(taskID); |
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.
Why is new Buffer(...)
being used here?
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.
Looks good to me!
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.
/packages/types/src/xcmpHandler.ts
is also needed to change.
@imstar15 Ready to review again |
@chrisli30 @imstar15 This PR is just to update the test. I will re-gen those type def and edgeware.json in separate 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.
It’s good to go!
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.
Looks good to me!
We have updated our chain API in runtime 2.9.5 and oak-collator 2.0.0. it is a breaking changes so we updated this to reflect our task id change.
Before:
task id can be infer on client side using provided id
After:
client need to fetch events and find task id to assert or do more CRUD.
Test result run againt a local node on
bump-to-2.0.0
branch on revisione3b6896bf6d6d9f07a4fdbe70155b8cccfe140f1