Skip to content

Commit 5492331

Browse files
authored
[Dashboard] Add chain, publisher, and contract data to deploy failure analytics (#7376)
1 parent 1397adf commit 5492331

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

apps/dashboard/src/@/analytics/report.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ export function reportContractDeployed(properties: {
3737
*/
3838
export function reportContractDeployFailed(properties: {
3939
errorMessage: string;
40+
chainId: number;
41+
publisher: string | undefined;
42+
contractName: string | undefined;
4043
}) {
4144
posthog.capture("contract deploy failed", properties);
4245
}

apps/dashboard/src/components/contract-components/contract-deploy-form/custom-contract.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,9 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
696696
const parsedError = parseError(e);
697697
reportContractDeployFailed({
698698
errorMessage: parsedError,
699+
chainId: walletChain.id,
700+
publisher: rewriteTwPublisher(metadata.publisher),
701+
contractName: metadata.name,
699702
});
700703

701704
deployStatusModal.close();

0 commit comments

Comments
 (0)