Skip to content

Commit ae621c3

Browse files
committed
fix: parse chain IDs when builindg iframe URL
1 parent 52ec3fb commit ae621c3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/disputeSummary.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@ class DisputeSummary extends React.Component {
1212
const { arbitratorDisputeID, arbitratorAddress, arbitratorChainID, chainID, web3Provider } = this.props;
1313
return {
1414
disputeID: arbitratorDisputeID,
15-
chainID,
15+
parsedChainID: parseInt(chainID, 10),
1616
arbitratorContractAddress: arbitratorAddress,
1717
arbitratorJsonRpcUrl: getReadOnlyRpcUrl({ chainId: arbitratorChainID }) ?? web3Provider,
18-
arbitratorChainID,
18+
arbitratorChainID: parseInt(arbitratorChainID, 10),
1919
};
2020
}
2121

2222
getArbitrableConfig() {
2323
const { arbitrableChainID, arbitrated, web3Provider } = this.props;
2424
return {
2525
arbitrableContractAddress: arbitrated,
26-
arbitrableChainID,
26+
arbitrableChainID: parseInt(arbitrableChainID, 10),
2727
arbitrableJsonRpcUrl: getReadOnlyRpcUrl({ chainId: arbitrableChainID }) ?? web3Provider,
2828
};
2929
}
3030

3131
getInjectedArgs() {
3232
const { web3Provider, chainID } = this.props;
3333
// Convert web3Provider object to URL string if needed
34-
const jsonRpcUrl = typeof web3Provider === 'object'
35-
? getReadOnlyRpcUrl({ chainId: chainID })
34+
const jsonRpcUrl = typeof web3Provider === 'object'
35+
? getReadOnlyRpcUrl({ chainId: chainID })
3636
: web3Provider;
37-
37+
3838
// Follow Kleros Court approach: only pass essential parameters
3939
// Do NOT pass block range parameters - let evidence interfaces handle optimization internally
4040
const baseArgs = {
@@ -58,7 +58,7 @@ class DisputeSummary extends React.Component {
5858

5959
renderAliases(metaevidenceJSON) {
6060
if (!metaevidenceJSON.aliases) return null;
61-
61+
6262
return (
6363
<Row>
6464
{Object.entries(metaevidenceJSON.aliases).map(([key, value]) => (

0 commit comments

Comments
 (0)