Skip to content

Commit

Permalink
verification plugin: Fix Matomo event to only send once per enabled v…
Browse files Browse the repository at this point in the history
…erifier
  • Loading branch information
manuelwedler committed Oct 30, 2024
1 parent 963931c commit c5b01bc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/contract-verification/src/app/views/VerifyView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ export const VerifyView = () => {
name: verifierId as VerifierIdentifier,
}
receipts.push({ verifierInfo, status: 'pending', contractId, isProxyReceipt: false, failedChecks: 0 })
if (enabledVerifiers.Blockscout) await sendToMatomo('verify', "verifyWith: Blockscout On: " + selectedChain + " IsProxy: " + (hasProxy && proxyAddress))
if (enabledVerifiers.Etherscan) await sendToMatomo('verify', "verifyWithEtherscan On: " + selectedChain + " IsProxy: " + (hasProxy && proxyAddress))
if (enabledVerifiers.Sourcify) await sendToMatomo('verify', "verifyWithSourcify On: " + selectedChain + " IsProxy: " + (hasProxy && proxyAddress))
if (enabledVerifiers.Routescan) await sendToMatomo('verify', "verifyWithRoutescan On: " + selectedChain + " IsProxy: " + (hasProxy && proxyAddress))
await sendToMatomo('verify', `verifyWith${verifierId} On: ${selectedChain} IsProxy: ${hasProxy && proxyAddress}`)
}

const newSubmittedContract: SubmittedContract = {
Expand Down

0 comments on commit c5b01bc

Please sign in to comment.