-
Notifications
You must be signed in to change notification settings - Fork 4
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
β¨ (keyring-eth) [DSDK-430]: Add ProvideTransactionContextTask
#216
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
packages/signer/keyring-eth/src/internal/app-binder/command/ProvideDomainNameCommand.ts
Outdated
Show resolved
Hide resolved
packages/signer/keyring-eth/src/internal/app-binder/task/ProvideTransactionContextTask.ts
Outdated
Show resolved
Hide resolved
packages/signer/keyring-eth/src/internal/app-binder/task/ProvideTransactionContextTask.ts
Outdated
Show resolved
Hide resolved
packages/signer/keyring-eth/src/internal/app-binder/task/ProvideTransactionContextTask.ts
Outdated
Show resolved
Hide resolved
e665f49
to
922dd9e
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.
LGTM π
packages/signer/keyring-eth/src/internal/app-binder/task/ProvideTransactionContextTask.ts
Outdated
Show resolved
Hide resolved
packages/signer/keyring-eth/src/internal/app-binder/task/ProvideTransactionContextTask.ts
Outdated
Show resolved
Hide resolved
} | ||
switch (context.type) { | ||
case "plugin": { | ||
await this.api.sendCommand( |
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.
[ask] if there is an error in any commands of this loop case, the error would be in the result.
Should this task continue in this case?
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 think if an error happen during a send of a provide, the task should stop, WDYT ?
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 agree, I think in that case we should stop and return the error to upper layer so it can be forwarded to the user (for example the device auto-locked, or any other reason)
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.
π
922dd9e
to
e39acb1
Compare
e39acb1
to
11dede3
Compare
11dede3
to
368e549
Compare
368e549
to
cd2bc78
Compare
cd2bc78
to
37ab74f
Compare
37ab74f
to
d4a363f
Compare
π Description
ProvideTransactionContextTask
;provideDomainNameTask
method which will organise theProvideDomainNameCommand
;SetPluginCommand
(single command)SetExternalPluginCommand
(single command)ProvideNFTInformationCommand
(single command)ProvideTokenInformationCommand
(single command)ProvideDomainNameCommand
(mulpitle commands)ClearSignContextType
inpackages/signer/context-module/src/shared/model/ClearSignContext.ts
to clarify the context type;β Context
β Checklist
Pull Requests must pass the CI and be code reviewed. Set as Draft if the PR is not ready.
ProvideTransactionContextTask
.π§ Checklist for the PR Reviewers