-
Notifications
You must be signed in to change notification settings - Fork 48
fix(web): fix-dispute-template-presets-in-dev-ui #1627
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
Conversation
WalkthroughThe changes primarily involve updating transaction hash values in the Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant App
participant ChainService
User ->> App: Requests dispute params with txn hash
App ->> ChainService: Calls getChain with chainId
ChainService -->> App: Returns chain object
App ->> ChainService: Calls createPublicClient with txn hash and chain object
ChainService -->> App: Returns dispute params
App -->> User: Responds with dispute params
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
✅ Deploy Preview for kleros-v2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for kleros-v2-university ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for kleros-v2-neo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Outside diff range and nitpick comments (1)
web/src/utils/getDisputeRequestParamsFromTxn.ts (1)
Line range hint
24-53
: Review ofgetDisputeRequestParamsFromTxn
function.
- Error Logging: The error logging in the catch block could be more informative. Include more context or the actual error message.
- Bundle Size Warning: The comment about large bundle size is good, but consider if there's a way to reduce the import size or split the code.
- Use of Async/Await: Proper use of async/await for asynchronous calls.
- Error Handling: Good use of try-catch for error handling, but the catch block could be more descriptive.
- console.log("Error getting txn :", { e }); + console.error("Failed to get transaction receipt for hash:", hash, "Error:", e.message);Consider modularizing this function further if it's contributing significantly to the bundle size, possibly by lazy loading some dependencies.
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- web/src/pages/DisputeTemplateView/FetchDisputeRequestInput.tsx (1 hunks)
- web/src/utils/getDisputeRequestParamsFromTxn.ts (2 hunks)
Files skipped from review due to trivial changes (1)
- web/src/pages/DisputeTemplateView/FetchDisputeRequestInput.tsx
0736c54
to
c538b43
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- web/src/pages/DisputeTemplateView/FetchDisputeRequestInput.tsx (1 hunks)
- web/src/utils/getDisputeRequestParamsFromTxn.ts (2 hunks)
Files skipped from review as they are similar to previous changes (2)
- web/src/pages/DisputeTemplateView/FetchDisputeRequestInput.tsx
- web/src/utils/getDisputeRequestParamsFromTxn.ts
Code Climate has analyzed commit 5188d2f and detected 0 issues on this pull request. View more on Code Climate. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- web/src/pages/DisputeTemplateView/FetchDisputeRequestInput.tsx (1 hunks)
Additional comments not posted (2)
web/src/pages/DisputeTemplateView/FetchDisputeRequestInput.tsx (2)
49-49
: Verify the new transaction hash for "Escrow".Ensure that the new transaction hash
0x85e60cb407c9a38e625263cc762ff4283d01f38201825e1d20109d8664cfa7d4
is correct and valid for the intended use case.
54-54
: Verify the new transaction hash for "Curated Lists".Ensure that the new transaction hash
0x6e5ad6f7436ef8570b50b0fbec76a11ccedbed85030c670e59d8f6617a499108
is correct and valid for the intended use case.
PR-Codex overview
The focus of this PR is to add functionality to fetch dispute request parameters from a transaction on a specific EVM chain.
Detailed summary
txnHash
values inFetchDisputeRequestInput.tsx
getChain
function to retrieve chain objectgetDisputeRequestParamsFromTxn
to usecreatePublicClient
with chain object andhttp
transportSummary by CodeRabbit
Bug Fixes
Improvements