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

consolidate tx input errors into TransactionInputObjectsErrors #7369

Merged
merged 2 commits into from
Jan 14, 2023

Conversation

longbowlu
Copy link
Contributor

Today transaction input checking could return 100 types of SuiErrors. This makes determining if a failure is forgivable (e.g. the txn can be retried) hard. In this PR we make fn check_transaction_input only return TransactionInputObjectsErrors to simplify the logic.

@vercel
Copy link

vercel bot commented Jan 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments
Name Status Preview Comments Updated
explorer ⬜️ Ignored (Inspect) Jan 13, 2023 at 9:30PM (UTC)
explorer-storybook ⬜️ Ignored (Inspect) Jan 13, 2023 at 9:30PM (UTC)
wallet-adapter ⬜️ Ignored (Inspect) Jan 13, 2023 at 9:30PM (UTC)

Copy link
Member

@amnn amnn left a comment

Choose a reason for hiding this comment

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

There's one substantive comment about double wrapping in TransactionInputObjectsErrors, but otherwise this looks good!

crates/sui-core/src/transaction_input_checker.rs Outdated Show resolved Hide resolved
crates/sui-types/src/error.rs Outdated Show resolved Hide resolved
crates/sui-types/src/error.rs Outdated Show resolved Hide resolved
crates/sui-types/src/messages.rs Outdated Show resolved Hide resolved
@longbowlu longbowlu force-pushed the consolidate-txn-input-error branch from 8c880b0 to 09a27c4 Compare January 13, 2023 21:29
@longbowlu longbowlu merged commit b11e3a6 into main Jan 14, 2023
@longbowlu longbowlu deleted the consolidate-txn-input-error branch January 14, 2023 00:07
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