Fix/contract interactions #122
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request makes two main types of changes: it removes unused providers and dependencies from
App.tsxto simplify the application setup, and it improves the handling of smart contract function interactions inContractInteraction.tsxby adding robust ABI value parsing and better support for overloaded functions.App setup simplification:
WagmiProvider,QueryClientProvider,NotificationProvider) and their related imports and configuration fromApp.tsx, streamlining the app's provider hierarchy. [1] [2] [3] [4]rainbowkit.css) for more tailored styling.Contract interaction improvements:
parseAbiValueutility function inContractInteraction.tsxto robustly parse user input strings into appropriate Solidity ABI types, improving support for arrays, tuples, booleans, integers, bytes, addresses, and strings. This ensures correct argument types are passed to contract functions. [1] [2] [3]getFunctionKeyhelper to uniquely identify overloaded contract functions by name and input types, preventing key collisions and improving selection logic in the UI. [1] [2] [3]Related Issue
Type of Change
Checklist
npm run format:fixandnpm run lint:fixnpm run typecheckwith no errorsnpm run test:run