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

fix(common): include only errors defined in the contract #2194

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

dk1a
Copy link
Contributor

@dk1a dk1a commented Jan 25, 2024

pulled out of #2171

Copy link

changeset-bot bot commented Jan 25, 2024

🦋 Changeset detected

Latest commit: 2aca339

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 30 packages
Name Type
@latticexyz/common Patch
@latticexyz/block-logs-stream Patch
@latticexyz/cli Patch
@latticexyz/config Patch
@latticexyz/dev-tools Patch
@latticexyz/faucet Patch
@latticexyz/protocol-parser Patch
@latticexyz/store-indexer Patch
@latticexyz/store-sync Patch
@latticexyz/store Patch
@latticexyz/world-modules Patch
@latticexyz/world Patch
@latticexyz/react Patch
@latticexyz/abi-ts Patch
create-mud Patch
@latticexyz/ecs-browser Patch
@latticexyz/gas-report Patch
@latticexyz/network Patch
@latticexyz/noise Patch
@latticexyz/phaserx Patch
@latticexyz/recs Patch
@latticexyz/schema-type Patch
@latticexyz/services Patch
@latticexyz/solecs Patch
solhint-config-mud Patch
solhint-plugin-mud Patch
@latticexyz/std-client Patch
@latticexyz/std-contracts Patch
@latticexyz/store-cache Patch
@latticexyz/utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dk1a dk1a marked this pull request as ready for review January 25, 2024 14:46
@dk1a dk1a requested review from alvrs and holic as code owners January 25, 2024 14:46
holic
holic previously approved these changes Jan 25, 2024
Copy link
Member

@holic holic left a comment

Choose a reason for hiding this comment

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

Is there some way to show the outcome of this? In a test or in some example codegen interface?

@dk1a
Copy link
Contributor Author

dk1a commented Jan 25, 2024

Is there some way to show the outcome of this? In a test or in some example codegen interface?

Yeah, we never ran into the issue but I can make an example, test would be trickier (btw do we have tests that compare solidity file contents to expected output?)

@holic
Copy link
Member

holic commented Jan 25, 2024

btw do we have tests that compare solidity file contents to expected output?

not really but a snapshot test would be fine for this I think (grep for toMatchInlineSnapshot)! I am fine with either that or an example that shows output

@dk1a
Copy link
Contributor Author

dk1a commented Jan 26, 2024

Added a simple example (it incorrectly generates the error in main branch)

@holic holic merged commit c162ad5 into main Jan 30, 2024
11 checks passed
@holic holic deleted the dk1a/contractToInterfacesFixes branch January 30, 2024 13:51
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