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

feat(store,world): add errors to IStore, rename error interfaces #759

Merged
merged 7 commits into from
May 9, 2023

Conversation

holic
Copy link
Member

@holic holic commented May 8, 2023

Addresses two issues:

  • IStore (and thus the downstream generated IWorld) was missing store error definitions. Because we will use IWorld ABI as our typed interface into the world and used to decode errors, we'll need these here.
  • Renames the two IErrors interfaces because forge flattens these ABIs by name, so only one was appearing in the ABI output for a given project using both world and store.

Might help with #712 but unclear without a reproduction of the original issue.

There's another issue around user-defined errors/events (#757) that we should address separately but is also needed to ensure our parsing of errors etc. is robust when calling methods on the world.

@vercel
Copy link

vercel bot commented May 8, 2023

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

Name Status Preview Comments Updated (UTC)
mud ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 9, 2023 2:03pm

@holic holic marked this pull request as ready for review May 8, 2023 21:10
@holic holic requested a review from alvrs as a code owner May 8, 2023 21:10
This was referenced May 8, 2023
@alvrs
Copy link
Member

alvrs commented May 9, 2023

Might help with #712 but unclear without a reproduction of the original issue.

We should be able to reproduce the forge error part by calling willRevert (from #689) in a forge test in the example project

alvrs
alvrs previously approved these changes May 9, 2023
Copy link
Member

@alvrs alvrs left a comment

Choose a reason for hiding this comment

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

good catch!

@holic holic merged commit 33362e7 into main May 9, 2023
@holic holic deleted the holic/store-world-error-interfaces branch May 9, 2023 14:14
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