Closed Harman-singh-waraich closed 3 weeks ago
The changes primarily involve updating transaction hash values in the FetchDisputeRequestInput.tsx
file and modifying the getDisputeRequestParamsFromTxn
function in getDisputeRequestParamsFromTxn.ts
. Specifically, the transaction hashes for the "Escrow" and "Curated Lists" presets have been replaced. Additionally, the getDisputeRequestParamsFromTxn
function has been enhanced with new parameters, and a new getChain
function was introduced for fetching chain objects based on chain ID.
File Path | Change Summary |
---|---|
web/src/pages/DisputeTemplateView/FetchDisputeRequestInput.tsx |
Updated transaction hash values for "Escrow" and "Curated Lists" presets. |
web/src/utils/getDisputeRequestParamsFromTxn.ts |
Enhanced getDisputeRequestParamsFromTxn function with new parameters and added a getChain function to retrieve chain objects based on chain ID. |
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
In code we trust, with chains entwined,
Hashes updated, new paths aligned,
Disputes resolved with clearer sight,
Functions enhanced in digital light.
A rabbit’s cheer, for changes wise,
Our code ascends to new highs! 🐇✨
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?
Name | Link |
---|---|
Latest commit | 5188d2fcef8a9627b1b0bebaf5e251b13f3ef6e8 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2/deploys/667bf92da6c53c0008454f38 |
Deploy Preview | https://deploy-preview-1627--kleros-v2.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 5188d2fcef8a9627b1b0bebaf5e251b13f3ef6e8 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-university/deploys/667bf92d6366360008dd7087 |
Deploy Preview | https://deploy-preview-1627--kleros-v2-university.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 5188d2fcef8a9627b1b0bebaf5e251b13f3ef6e8 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-neo/deploys/667bf92d44eda30008f0d73a |
Deploy Preview | https://deploy-preview-1627--kleros-v2-neo.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Code Climate has analyzed commit 5188d2fc and detected 0 issues on this pull request.
View more on Code Climate.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
⚠️ has big bundle size, wait for #1506 to be merged first
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