Skip to content

Commit

Permalink
Backward compatible address prefix for ETH network
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Jan 6, 2025
1 parent 796772c commit 451e301
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions near/omni-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ impl OmniAddress {
format!("sol-{hashed_address}")
}
}
OmniAddress::Eth(address) => address.to_string(),
_ => self.encode('-', true),
}
}
Expand Down

0 comments on commit 451e301

Please sign in to comment.