From 6dc1ee640e0693ec6e7135c9c580bbb5d1ce856d Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Thu, 27 Mar 2025 13:08:18 -0700 Subject: [PATCH] refactor(ui): chunk deposit address spacing by 4 --- src/pages/[locale]/staking/deposit-contract.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/[locale]/staking/deposit-contract.tsx b/src/pages/[locale]/staking/deposit-contract.tsx index a5c4424a60a..d51f8363ff7 100644 --- a/src/pages/[locale]/staking/deposit-contract.tsx +++ b/src/pages/[locale]/staking/deposit-contract.tsx @@ -154,7 +154,8 @@ const StyledFakeLink = (props: ButtonProps) => ( /> ) -const CHUNKED_ADDRESS = DEPOSIT_CONTRACT_ADDRESS.match(/.{1,3}/g)?.join(" ") +const CHUNKED_ADDRESS = + DEPOSIT_CONTRACT_ADDRESS.match(/(?:^0x|.{4})/g)?.join(" ") const blockieSrc = makeBlockie(DEPOSIT_CONTRACT_ADDRESS)