File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Cases/CaseDetails/Voting/Shutter Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ const Commit: React.FC<ICommit> = ({
100100 const encodedMessage = `${ choice . toString ( ) } ${ SEPARATOR } ${ salt } ${ SEPARATOR } ${ justification } ` ;
101101 /* an extra 300 seconds (5 minutes) of decryptionDelay is enforced after Commit period is over
102102 to avoid premature decryption and voting attacks if no one passes the Commit period quickly */
103- const decryptionDelay = countdownToVotingPeriod ?? 0 + 300 ;
103+ const decryptionDelay = ( countdownToVotingPeriod ?? 0 ) + 300 ;
104104 const { encryptedCommitment, identity } = await encrypt ( encodedMessage , decryptionDelay ) ;
105105
106106 const commitHash = hashVote ( choice , BigInt ( salt ) , justification ) ;
Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ import { DisplaySmall, Field } from "@kleros/ui-components-library";
55
66import ETH from "svgs/icons/eth.svg" ;
77
8- import { REFETCH_INTERVAL } from "consts/index" ;
98import { DEFAULT_CHAIN } from "consts/chains" ;
9+ import { REFETCH_INTERVAL } from "consts/index" ;
1010import { useNewDisputeContext } from "context/NewDisputeContext" ;
1111import { useReadKlerosCoreArbitrationCost } from "hooks/contracts/generated" ;
1212import { formatETH } from "utils/format" ;
1313import { isUndefined } from "utils/index" ;
1414import { prepareArbitratorExtradata } from "utils/prepareArbitratorExtradata" ;
1515
16- import { responsiveSize } from "styles/responsiveSize" ;
1716import { landscapeStyle } from "styles/landscapeStyle" ;
17+ import { responsiveSize } from "styles/responsiveSize" ;
1818
1919import Header from "pages/Resolver/Header" ;
2020
@@ -58,7 +58,7 @@ const Jurors: React.FC = () => {
5858 enabled : ! isUndefined ( disputeData . numberOfJurors ) && ! Number . isNaN ( disputeData . numberOfJurors ) ,
5959 refetchInterval : REFETCH_INTERVAL ,
6060 } ,
61- args : [ prepareArbitratorExtradata ( disputeData . courtId ?? "" , disputeData . numberOfJurors ?? "" ) ] ,
61+ args : [ prepareArbitratorExtradata ( disputeData . courtId ?? "" , disputeData . numberOfJurors ?? "0 " ) ] ,
6262 chainId : DEFAULT_CHAIN ,
6363 } ) ;
6464
You can’t perform that action at this time.
0 commit comments