Skip to content

Commit

Permalink
Merge pull request Stride-Labs#101 from Stride-Labs/certik-misc
Browse files Browse the repository at this point in the history
Misc certik changes (from prev weeks)
  • Loading branch information
riley-stride authored Jul 22, 2022
2 parents 85efd6b + caf3737 commit daa2162
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions x/interchainquery/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ func (k *Keeper) MakeRequest(ctx sdk.Context, connection_id string, chain_id str
// ======================================================================================================================
// Perform basic validation on the query input

// today we only support queries at the latest block height on the host zone, specified by "height=0"

if height != 0 {
return fmt.Errorf("ICQ query height must be 0! Found a query at non-zero height %d", height)
}

// connection id cannot be empty and must begin with "connection"
if connection_id == "" {
k.Logger(ctx).Error("[ICQ Validation Check] Failed! connection id cannot be empty")
Expand Down
4 changes: 2 additions & 2 deletions x/stakeibc/keeper/msg_server_submit_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ func (k Keeper) UpdateWithdrawalBalance(ctx sdk.Context, zoneInfo types.HostZone
sdk.NewInt(-1),
types.ModuleName,
"withdrawalbalance",
0, //ttl
0, //height
0, // ttl
0, // height always 0 (which means current height)
)
if err != nil {
k.Logger(ctx).Error("Error querying for withdrawal balance", "error", err)
Expand Down

0 comments on commit daa2162

Please sign in to comment.