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

Prestwich/dyn sol error #551

Merged
merged 10 commits into from
Mar 4, 2024
Merged

Prestwich/dyn sol error #551

merged 10 commits into from
Mar 4, 2024

Conversation

prestwich
Copy link
Member

@prestwich prestwich commented Mar 1, 2024

Motivation

Work on bringing dyn-abi up to feature parity with sol-types

Solution

Add DynSolError to match DynSolType and DynSolEvent

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@prestwich prestwich marked this pull request as ready for review March 2, 2024 10:07
@prestwich prestwich self-assigned this Mar 2, 2024
@prestwich prestwich added the enhancement New feature or request label Mar 2, 2024
crates/dyn-abi/src/dynamic/error.rs Outdated Show resolved Hide resolved
/// Error selector.
pub(crate) selector: Selector,
/// Error body types.
pub(crate) body: DynSolType,
Copy link
Member

Choose a reason for hiding this comment

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

Vec<DynSolType>?

Copy link
Member Author

Choose a reason for hiding this comment

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

DynSolEvent uses DynSolType for body. could change both?

Copy link
Member Author

Choose a reason for hiding this comment

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

i'd rather leave as-is for now

crates/dyn-abi/src/dynamic/error.rs Show resolved Hide resolved
@prestwich prestwich requested a review from DaniPopes March 2, 2024 18:19
@prestwich prestwich merged commit 4521390 into main Mar 4, 2024
21 checks passed
@prestwich prestwich deleted the prestwich/dyn-sol-error branch March 4, 2024 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants