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

chore(sui): use common utils instead of evm utils #325

Merged
merged 2 commits into from
Jul 30, 2024
Merged

Conversation

npty
Copy link
Member

@npty npty commented Jul 30, 2024

Description

AXE-4552

This PR replaces all ../evm/utils with ../common/utils which was recently introduced in this PR and adds two new functions which are validateParameters and isKeccak256Hash since we have also utilized it in the sui/deploy-contract.js.

One additional change is to fix a minor bug where we didn't return objectId out of getObjectIdsByObjectTypes.

Note that validateParameters in common/utils.js differs from evm/utils.js. The evm one will also supported evm-related validation methods such as isContract, isValidPrivateKey, isValidTokenId, isValidTokenId, isValidCalldata, etc where the common one doesn't include those functions.

@npty npty self-assigned this Jul 30, 2024
@npty npty requested a review from a team as a code owner July 30, 2024 12:40
@npty npty force-pushed the chore/use-common-utils branch from c29a4fd to 295de53 Compare July 30, 2024 12:50
Copy link
Contributor

@blockchainguyy blockchainguyy left a comment

Choose a reason for hiding this comment

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

LGTM.

@npty npty merged commit 71c829b into main Jul 30, 2024
4 checks passed
@npty npty deleted the chore/use-common-utils branch July 30, 2024 13:38
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