-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tiny refactor for shortenAddress
inputs and docs
#3004
Conversation
🦋 Changeset detectedLatest commit: 354c7a7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
CodSpeed Performance ReportMerging #3004 will not alter performanceComparing Summary
|
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3004 +/- ##
==========================================
- Coverage 64.55% 64.55% -0.01%
==========================================
Files 759 759
Lines 53052 53052
Branches 3096 3093 -3
==========================================
- Hits 34249 34248 -1
- Misses 18138 18139 +1
Partials 665 665
*This pull request uses carry forward flags. Click here to find out more.
|
* ``` | ||
* @utils | ||
*/ | ||
export function shortenAddress(address: Address, length = 4) { | ||
export function shortenAddress(address: string, length = 4) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant it should leave 4 chars after the 0x on the first slice, like
0xabcd....1234
PR-Codex overview
The focus of this PR is to update the
shortenAddress
function inthirdweb
package to accept a string parameter instead of anAddress
.Detailed summary
shortenAddress
function now accepts a string parameter