Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 12a98ba

Browse files
committedJan 29, 2024
fix(core): check if mod tag is the correct length
1 parent d9c5431 commit 12a98ba

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎packages/core/src/renderer.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -936,9 +936,11 @@ export class Renderer {
936936
setTimeout(() => {
937937
/* Populate attribution tags */
938938
const zeroAddress = "0000000000000000000000000000000000000000";
939-
const modTag = this.manifest.custodyAddress.startsWith("0x")
940-
? this.manifest.custodyAddress.slice(2)
941-
: zeroAddress;
939+
const modTag =
940+
this.manifest.custodyAddress.startsWith("0x") &&
941+
this.manifest.custodyAddress.length === 42
942+
? this.manifest.custodyAddress.slice(2)
943+
: zeroAddress;
942944
const clientTag =
943945
this.context.clientReferralAddress?.slice(2) || zeroAddress;
944946
let txData = this.replaceInlineContext(action.txData.data || "");

0 commit comments

Comments
 (0)
Please sign in to comment.