-
Notifications
You must be signed in to change notification settings - Fork 220
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
encode shelley addresses with their final encoding (bech32 / base58) #1746
Conversation
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.
👍
_decodeAddress x = validateWithLedger =<< W.Address <$> fromHex x | ||
_encodeAddress :: W.Address -> Text | ||
_encodeAddress (W.Address bytes) = | ||
if isJust (CBOR.deserialiseCbor CBOR.decodeAddressPayload bytes) |
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.
A golden here would be nice; I don't think a mistake here would be caught
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 intended to add some tests, hence the draft 👍
Still, I kept support for base16 when decoding addresses, so that we don't necessarily break compatibility with cardano-cli.
443d15b
to
09e3fa1
Compare
bors try |
tryBuild failed |
Not matching the one the server is started with
bors r+ |
Build succeeded |
Issue Number
N/A
Overview
Still, I kept support for base16 when decoding addresses, so that we don't necessarily break compatibility with cardano-cli.
Comments