Skip to content

Commit

Permalink
Fix identifying Tezos contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmichalis committed Jan 9, 2025
1 parent 0feb7fe commit 9b84eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl FromStr for ChainAddress {
type Err = anyhow::Error;

fn from_str(s: &str) -> Result<Self, Self::Err> {
if s.starts_with("tz") {
if s.starts_with("KT1") {
Ok(ChainAddress::Tezos(s.to_string()))
} else {
Ok(ChainAddress::Ethereum(
Expand Down

0 comments on commit 9b84eed

Please sign in to comment.