Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson86tw committed May 10, 2024
1 parent a7b80d8 commit 3ed03e0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# CHANGELOG

## v1.4.3
- Update `shortenAddress`

```ts
test('shortenAddress', () => {
expect(shortenAddress('0x9D75F4EbcB8e7669E59dcc27CBadC698E0F77187')).toBe('0x9D75...7187')
})

test('shortenAddress with custom start and end length', () => {
expect(shortenAddress('0x9D75F4EbcB8e7669E59dcc27CBadC698E0F77187', 8, 5)).toBe('0x9D75F4...77187')
})

test('shortenAddress with invalid address', () => {
expect(shortenAddress('')).toBe('')
expect(shortenAddress(null as any)).toBe('')
expect(shortenAddress(undefined as any)).toBe('')
})
```

## v1.4.2
- Feat: Don't auto-connect to MetaMask if it's locked #185

Expand Down

0 comments on commit 3ed03e0

Please sign in to comment.