Skip to content

Commit

Permalink
fix credo
Browse files Browse the repository at this point in the history
  • Loading branch information
pxp9 committed Oct 21, 2024
1 parent a2542c6 commit 726d5eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/cryptopunk/crypto/tron.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ defmodule Cryptopunk.Crypto.Tron do
Tron address generation logic.
"""

alias Cryptopunk.Key
alias Cryptopunk.Crypto.Tron.Validation
alias Cryptopunk.Key

@version_bytes %{
mainnet: <<0x41>>,
Expand Down
6 changes: 3 additions & 3 deletions lib/cryptopunk/crypto/tron/checksum_encoding.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ defmodule Cryptopunk.Crypto.Tron.ChecksumEncoding do
end

def validate_address(address) do
if not String.starts_with?(address, "T") do
{:error, :invalid_start_char}
else
if String.starts_with?(address, "T") do
{:error, :invalid_address_length}
else
{:error, :invalid_start_char}
end
end

Expand Down

0 comments on commit 726d5eb

Please sign in to comment.