-
Notifications
You must be signed in to change notification settings - Fork 121
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
mint: fix REST encoding of mint RPC #319
Conversation
This is a follow-up to #286 which allowed developers to specify any raw bytes as a hex string in the REST API (instead of the library default of base64). The only area where that change didn't apply is the URI part of REST calls. For those we need to use a string field to support hex encoding, the same way we already did for the universe REST API.
This is a purely cosmetic change that just makes it a bit more apparent that we are using different URIs for the same gRPC method to make usage of the universe API easier for REST users.
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 - IIUC we already display these fields in hex so I think copy & paste should continue working.
@Roasbeef: review reminder |
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 🧊
|
||
- selector: universerpc.Universe.QueryAssetRoots | ||
get: "/v1/taproot-assets/universe/roots/group-key/{id.group_key_str}" | ||
additional_bindings: |
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.
👍
This is a follow-up to #286 which allowed developers to specify any raw
bytes as a hex string in the REST API (instead of the library default of
base64).
The only area where that change didn't apply is the URI part of REST
calls. For those we need to use a string field to support hex encoding,
the same way we already did for the universe REST API.