Skip to content

Commit

Permalink
fix: only record bytecode if >0 (#7932)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr authored Aug 13, 2024
1 parent 8d2e3c2 commit 3f145b3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ export class PublicProcessorMetrics {
totalBytecode += event.packedPublicBytecode.length;
}

this.bytecodeDeployed.record(totalBytecode);
if (totalBytecode > 0) {
this.bytecodeDeployed.record(totalBytecode);
}
}
}

0 comments on commit 3f145b3

Please sign in to comment.