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

[types] Remove requirement on 0x for input #113

Merged
merged 3 commits into from
Oct 24, 2023
Merged

Conversation

gregnazario
Copy link
Collaborator

Description

This removes needing to do silliness like:

0x${HexInput.toStringWithoutPrefix()}...

Test Plan

Related Links

Comment on lines +642 to +644
export type MoveAddressType = string;
export type MoveObjectType = string;
export type MoveStructType = `${string}::${string}::${string}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

I suspect user (like me) will dig in and check what these types are.

Shall we add a note here for the user to know, that there should be 0x prefix?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We can probably document that on each type

@gregnazario gregnazario enabled auto-merge (rebase) October 24, 2023 17:15
@gregnazario gregnazario disabled auto-merge October 24, 2023 17:15
@gregnazario gregnazario enabled auto-merge (squash) October 24, 2023 17:16
@gregnazario gregnazario merged commit c903b3f into main Oct 24, 2023
11 of 12 checks passed
@gregnazario gregnazario deleted the remove-0x-prefix branch October 24, 2023 17:18
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.

2 participants