@@ -96,13 +96,13 @@ func (bc *BabylonController) GetKeyAddress() sdk.AccAddress {
96
96
97
97
func (bc * BabylonController ) QueryStakingParamsByVersion (version uint32 ) (* types.StakingParams , error ) {
98
98
// query btc checkpoint params
99
- ckptParamRes , err := bc .bbnClient .QueryClient . BTCCheckpointParams ()
99
+ ckptParamRes , err := bc .bbnClient .BTCCheckpointParams ()
100
100
if err != nil {
101
101
return nil , fmt .Errorf ("failed to query params of the btccheckpoint module: %w" , err )
102
102
}
103
103
104
104
// query btc staking params
105
- stakingParamRes , err := bc .bbnClient .QueryClient . BTCStakingParamsByVersion (version )
105
+ stakingParamRes , err := bc .bbnClient .BTCStakingParamsByVersion (version )
106
106
if err != nil {
107
107
return nil , fmt .Errorf ("failed to query staking params with version %d: %w" , version , err )
108
108
}
@@ -208,7 +208,7 @@ func (bc *BabylonController) QueryVerifiedDelegations(limit uint64) ([]*types.De
208
208
209
209
// QueryBTCDelegation queries the BTC delegation by the tx hash
210
210
func (bc * BabylonController ) QueryBTCDelegation (stakingTxHashHex string ) (* types.Delegation , error ) {
211
- resp , err := bc .bbnClient .QueryClient . BTCDelegation (stakingTxHashHex )
211
+ resp , err := bc .bbnClient .BTCDelegation (stakingTxHashHex )
212
212
if err != nil {
213
213
return nil , fmt .Errorf ("failed to query BTC delegation %s: %w" , stakingTxHashHex , err )
214
214
}
@@ -229,7 +229,7 @@ func (bc *BabylonController) queryDelegationsWithStatus(status btcstakingtypes.B
229
229
indexDels := uint64 (0 )
230
230
231
231
for indexDels < delsLimit {
232
- res , err := bc .bbnClient .QueryClient . BTCDelegations (status , pagination )
232
+ res , err := bc .bbnClient .BTCDelegations (status , pagination )
233
233
if err != nil {
234
234
return nil , fmt .Errorf ("failed to query BTC delegations: %w" , err )
235
235
}
0 commit comments