Skip to content

Commit

Permalink
Merge pull request #83 from onflow/cf/fix-count
Browse files Browse the repository at this point in the history
Fix address length
  • Loading branch information
chasefleming authored Feb 24, 2024
2 parents 5bf015f + 5499285 commit 0a0b4ae
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 0a0b4ae

Please sign in to comment.