Skip to content

Commit

Permalink
Fix address length
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Feb 24, 2024
1 parent 5bf015f commit 5499285
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/flow/fund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ export const tokens: Tokens = {
}

function getAddressType(address: string): "FLOW" | "FLOWEVM" {
if (address.length > 16) {
return "FLOWEVM"
} else {
if (address.length <= 18) {
return "FLOW"
} else {
return "FLOWEVM"
}
}

Expand Down

0 comments on commit 5499285

Please sign in to comment.