-
Notifications
You must be signed in to change notification settings - Fork 242
New GET routes for tokens #275
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
Conversation
Signed-off-by: David Echelberger <david.echelberger@kaleido.io>
peterbroadhurst
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.
I think TokenTransfer should be returned rather than TokenAccount on the transfers routes.
| FilterFactory: database.TokenTransferQueryFactory, | ||
| Description: i18n.MsgTBD, | ||
| JSONInputValue: nil, | ||
| JSONOutputValue: func() interface{} { return []*fftypes.TokenAccount{} }, |
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.
Is this TokenAccount?
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.
Good catch, should be TokenTransfer. Looks like a pre-existing bug, but I'll address it here.
| FilterFactory: database.TokenTransferQueryFactory, | ||
| Description: i18n.MsgTBD, | ||
| JSONInputValue: nil, | ||
| JSONOutputValue: func() interface{} { return []*fftypes.TokenAccount{} }, |
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.
Again here on TokenAccount
| if name == "" { | ||
| return i18n.NewError(ctx, i18n.MsgMissingTokensPluginConfig) | ||
| } | ||
| if err = fftypes.ValidateFFNameField(ctx, name, "name"); err != nil { |
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.
great thought to add this here, and stop people getting themselves into a situation where the connector can't be returned 👍
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Codecov Report
@@ Coverage Diff @@
## main #275 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 219 223 +4
Lines 12317 12356 +39
=========================================
+ Hits 12317 12356 +39
Continue to review full report at Codecov.
|
Reviewed separately on a branch:
Squashed together here for upstreaming.