Skip to content

Commit c405ca7

Browse files
authored
Merge pull request #15192 from ethereum/deposit-contract-display
refactor(ui): chunk deposit address spacing by 4
2 parents 9209529 + 83eb56a commit c405ca7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/[locale]/staking/deposit-contract/_components/deposit-contract.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ const StyledFakeLink = (props: ButtonProps) => (
140140
/>
141141
)
142142

143-
const CHUNKED_ADDRESS = DEPOSIT_CONTRACT_ADDRESS.match(/.{1,3}/g)?.join(" ")
143+
const CHUNKED_ADDRESS =
144+
DEPOSIT_CONTRACT_ADDRESS.match(/(?:^0x|.{4})/g)?.join(" ")
144145

145146
const blockieSrc = makeBlockie(DEPOSIT_CONTRACT_ADDRESS)
146147

0 commit comments

Comments
 (0)