Skip to content

Commit

Permalink
fix: condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ratik committed Nov 26, 2024
1 parent 4d9cf86 commit df6f703
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion contracts/network-link/.cargo/config
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[alias]
schema = "run --bin drop-hook-tester-schema"
schema = "run --bin drop-network-link-schema"
2 changes: 1 addition & 1 deletion contracts/network-link/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fn execute_link(
address: String,
) -> ContractResult<Response> {
let prefix = PREFIX.load(deps.storage)?;
if address.starts_with(&prefix) {
if !address.starts_with(&prefix) {
return Err(ContractError::WrongPrefix {});
}
bech32::decode(&address).map_err(|_| ContractError::WrongAddress {})?;
Expand Down

0 comments on commit df6f703

Please sign in to comment.