Skip to content

Commit

Permalink
fix hascontractinfo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianElvis committed Jun 27, 2024
1 parent 8ab4840 commit 4b1ea66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/babylon/keeper/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (k Keeper) getBTCStakingContractAddr(ctx sdk.Context) sdk.AccAddress {
k.Logger(ctx).Warn("the BTC staking contract address is malformed", "contract", addrStr, "error", err)
return nil
}
if k.wasm.HasContractInfo(ctx, addr) {
if !k.wasm.HasContractInfo(ctx, addr) {
// NOTE: it's possible that the default contract address does not correspond to
// any contract. We emit a warning message rather than panic to minimise the
// impact on the consumer chain's operation
Expand Down

0 comments on commit 4b1ea66

Please sign in to comment.