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

Modify CCTP crypto builtins to use Bytes #20798

Draft
wants to merge 7 commits into
base: cjp/cctp-bytes-builtins
Choose a base branch
from

Conversation

carlpulley-da
Copy link
Contributor

@carlpulley-da carlpulley-da commented Feb 19, 2025

Fixes https://github.com/DACH-NY/canton-network-utilities/issues/3165

  • complete Daml docstrings
  • fix test failure with CCTPMintToken.daml

Daml-script test code currently fails with:

 CRASH: Script.FailedCmd unexpected cause: Command Submit failed: Byte string is not UTF-8.

This is likely due to the ledger API not understanding ByteString encodings? This probably signals that there are some additional conversions needed here?

version : UInt32
burnToken : Bytes32
mintRecipient : Bytes32
amount : Int
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be considering using BigNumeric here instead (especially given this is targeting a UInt256)?

@carlpulley-da carlpulley-da changed the base branch from main to cjp/cctp-bytes-builtins February 21, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant