Skip to content

feat: enable creation U128 from string#11584

Closed
Groxan wants to merge 2 commits into
AztecProtocol:masterfrom
Groxan:enable-creation-u128-from-string
Closed

feat: enable creation U128 from string#11584
Groxan wants to merge 2 commits into
AztecProtocol:masterfrom
Groxan:enable-creation-u128-from-string

Conversation

@Groxan

@Groxan Groxan commented Jan 29, 2025

Copy link
Copy Markdown
Contributor

This PR proposes a safer type check in the U128 constructor and also resolves #11583.


Note: it would be more correct to also extend the ctor arg type with | string, but I skipped it, to avoid API changes.
Let me know, if you want this to be done as well.

@Groxan Groxan changed the title Enable creation U128 from string feat: enable creation U128 from string Jan 29, 2025
@Maddiaa0

Copy link
Copy Markdown
Member

Thanks for the contribution!
@nventuro @benesjan I'd be in favor of an api change here, it shouldnt be breaking, wdyt

@benesjan

Copy link
Copy Markdown
Contributor

@Maddiaa0 looks good to me.

Since CI is still broken for external contributors I've opened a replacement.

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.

ArgumentEncoder cannot encode string into U128

3 participants