Skip to content

Commit

Permalink
Trusting period logic remains same
Browse files Browse the repository at this point in the history
  • Loading branch information
vimystic committed Sep 12, 2023
1 parent 33e797f commit 0df7b55
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions relayer/chains/cosmos/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,6 @@ func (cc *CosmosProvider) AccountFromKeyOrAddress(keyOrAddress string) (out sdk.

func (cc *CosmosProvider) TrustingPeriod(ctx context.Context) (time.Duration, error) {
var unbondingTime time.Duration

unbondingTime, err := cc.QueryUnbondingPeriod(ctx)
if err == nil {
return unbondingTime, nil
} else {
fmt.Println("%w", err)
}

res, err := cc.QueryStakingParams(ctx)
if err != nil {
// Attempt ICS query
Expand Down

0 comments on commit 0df7b55

Please sign in to comment.