Skip to content
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

feat: add Result.toUpper/Result.fromUpper to facilitate interop with common IC canisters using upppercased result variants. #626

Merged
merged 4 commits into from
Apr 16, 2024

Conversation

ByronBecker
Copy link
Contributor

Low hanging solution for https://dx.internetcomputer.org/topic/166

I found myself using this a fair amount when integrating with the new Cycles Ledger, and see it in a fair number of places that integrate with protocol canisters that were built in Rust.

src/Result.mo Outdated Show resolved Hide resolved
src/Result.mo Outdated Show resolved Hide resolved
Copy link
Contributor

@crusso crusso left a 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 with the suggested name changes (discussed with team on slack)

src/Result.mo Outdated Show resolved Hide resolved
src/Result.mo Outdated Show resolved Hide resolved
src/Result.mo Outdated Show resolved Hide resolved
src/Result.mo Outdated Show resolved Hide resolved
@crusso crusso enabled auto-merge (squash) April 16, 2024 13:27
@crusso crusso changed the title add toLowerCasedResult and toUpperCasedResult functions to Result feat: add toLowerCasedResult and toUpperCasedResult functions to Result Apr 16, 2024
@crusso crusso changed the title feat: add toLowerCasedResult and toUpperCasedResult functions to Result feat: add Result.toUpper/Result.fromUpper to facilitate interop with common IC canisters using upppercased result variants. Apr 16, 2024
@crusso crusso merged commit 94ccc65 into dfinity:master Apr 16, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants