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

#299 Disable existing JSON ABI specification option for generic input form when no specifications are available #303

Merged
merged 5 commits into from
Jan 22, 2025

Conversation

nevendyulgerov
Copy link
Contributor

@nevendyulgerov nevendyulgerov commented Jan 16, 2025

Besides the code changes and new unit tests for it, I also refactored the test suite for the generic form, removing inline imports.

@nevendyulgerov nevendyulgerov added Type: Bug Something isn't working packages: ui labels Jan 16, 2025
Copy link

vercel bot commented Jan 16, 2025

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

Name Status Preview Comments Updated (UTC)
rollups-explorer-arbitrum-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 5:08pm
rollups-explorer-arbitrum-sepolia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 5:08pm
rollups-explorer-base-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 5:08pm
rollups-explorer-base-sepolia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 5:08pm
rollups-explorer-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 5:08pm
rollups-explorer-optimism-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 5:08pm
rollups-explorer-optimism-sepolia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 5:08pm
rollups-explorer-sepolia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 5:08pm
rollups-explorer-workshop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 5:08pm

rollupsWagmi.useSimulateInputBoxAddInput = vi
.fn()
.mockImplementation(mockedHook);
useSimulateInputBoxAddInputMock.mockImplementation(mockedHook);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This useSimulateInputBoxAddInputMock is already a mock. So you don't need to create an external one to pass as an implementation of another mock 🤔 . You could do the mockReturnValue as you did above or in the beforeEach. That also applies to all the other test cases doing the same.

@brunomenezes brunomenezes merged commit 25f62ea into main Jan 22, 2025
24 checks passed
@brunomenezes brunomenezes deleted the bugfix/299-tweak-abi-method-options branch January 22, 2025 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages: ui Type: Bug Something isn't working
Projects
None yet
2 participants