Skip to content

Commit

Permalink
fix method comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Oct 9, 2023
1 parent c6311b0 commit c3b1bb9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/ibchooks/ibc_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func NewIbcHooks(cdc codec.BinaryCodec, ibcHooksKeeper *keeper.Keeper, ibcKeeper
}
}

// ProperlyConfigured returns false if either wasm or marker hooks are configured properly
// ProperlyConfigured returns false if either wasm or marker hooks are configured incorrectly
func (h IbcHooks) ProperlyConfigured() bool {
return h.wasmHooks.ProperlyConfigured() && h.markerHooks.ProperlyConfigured() && h.ibcHooksKeeper != nil
}
Expand Down
2 changes: 1 addition & 1 deletion x/ibchooks/marker_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func NewMarkerHooks(markerkeeper *markerkeeper.Keeper) MarkerHooks {
}
}

// ProperlyConfigured returns false marker hooks are configured properly
// ProperlyConfigured returns false when marker hooks are configured incorrectly
func (h MarkerHooks) ProperlyConfigured() bool {
return h.MarkerKeeper != nil
}
Expand Down
1 change: 1 addition & 0 deletions x/ibchooks/wasm_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func NewWasmHooks(ibcHooksKeeper *keeper.Keeper, contractKeeper *wasmkeeper.Keep
}
}

// ProperlyConfigured returns false when wasm hooks are configured incorrectly
func (h WasmHooks) ProperlyConfigured() bool {
return h.ContractKeeper != nil && h.ibcHooksKeeper != nil
}
Expand Down

0 comments on commit c3b1bb9

Please sign in to comment.