Skip to content

Commit

Permalink
change in VERIFY & MINT ON CHAIN TWITTER BADGE, isSuccess button disa…
Browse files Browse the repository at this point in the history
…bled conditional
  • Loading branch information
Eeshau committed Aug 7, 2024
1 parent 664c4fc commit ab18856
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/app/src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ export const MainPage: React.FC<{}> = (props) => {
// alert("Generating proof, will fail due to input");


// //TEST CHANGES W/ WORKER BELOW
// //TEST CHANGES W/ WORKER BELOW COMMENTED OUT
const { proof, publicSignals } = await generateProof(
input,
// @ts-ignore
Expand All @@ -749,7 +749,7 @@ export const MainPage: React.FC<{}> = (props) => {
// CIRCUIT_NAME
// );

// TEST CHANGES ABOVE
// TEST CHANGES W/ WORKER ABOVE COMMENTED OUT


//const proof = JSON.parse('{"pi_a": ["19201501460375869359786976350200749752225831881815567077814357716475109214225", "11505143118120261821370828666956392917988845645366364291926723724764197308214", "1"], "pi_b": [["17114997753466635923095897108905313066875545082621248342234075865495571603410", "7192405994185710518536526038522451195158265656066550519902313122056350381280"], ["13696222194662648890012762427265603087145644894565446235939768763001479304886", "2757027655603295785352548686090997179551660115030413843642436323047552012712"], ["1", "0"]], "pi_c": ["6168386124525054064559735110298802977718009746891233616490776755671099515304", "11077116868070103472532367637450067545191977757024528865783681032080180232316", "1"], "protocol": "groth16", "curve": "bn128"}');
Expand Down Expand Up @@ -892,7 +892,7 @@ export const MainPage: React.FC<{}> = (props) => {
</Button>
<Button
highlighted={verificationMessage === 'Passed!' || isSuccess}
disabled={!verificationPassed || isLoading || isSuccess || !write}
disabled={!verificationPassed || isLoading || !write}
onClick={async () => {
if (isSuccess) {
window.open(`https://sepolia.etherscan.io/tx/${data?.hash}`, "_blank");
Expand Down

0 comments on commit ab18856

Please sign in to comment.