@@ -34,7 +34,6 @@ import (
3434 minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
3535 "github.com/cosmos/cosmos-sdk/x/staking"
3636 stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
37- "github.com/cosmos/cosmos-sdk/x/staking/types"
3837 stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
3938)
4039
@@ -465,13 +464,13 @@ func TestGRPCValidatorUnbondingDelegations(t *testing.T) {
465464 shares1 , rewardsShares1 , err := fundAccountAndDelegate (f , t , delegatorAddr1 , validator , f .amt1 )
466465 assert .NilError (t , err )
467466
468- _ , _ , err = f .stakingKeeper .Undelegate (f .ctx , delegatorAddr1 , validatorAddr1 , types .FlexiblePeriodDelegationID , shares1 , rewardsShares1 )
467+ _ , _ , err = f .stakingKeeper .Undelegate (f .ctx , delegatorAddr1 , validatorAddr1 , stakingtypes .FlexiblePeriodDelegationID , shares1 , rewardsShares1 )
469468 assert .NilError (t , err )
470469
471470 shares2 , rewardsShares2 , err := fundAccountAndDelegate (f , t , delegatorAddr2 , validator , f .amt2 )
472471 assert .NilError (t , err )
473472
474- _ , _ , err = f .stakingKeeper .Undelegate (f .ctx , delegatorAddr2 , validatorAddr1 , types .FlexiblePeriodDelegationID , shares2 , rewardsShares2 )
473+ _ , _ , err = f .stakingKeeper .Undelegate (f .ctx , delegatorAddr2 , validatorAddr1 , stakingtypes .FlexiblePeriodDelegationID , shares2 , rewardsShares2 )
475474 assert .NilError (t , err )
476475
477476 req := & stakingtypes.QueryValidatorUnbondingDelegationsRequest {
@@ -525,7 +524,7 @@ func TestGRPCUnbondingDelegation(t *testing.T) {
525524
526525 valbz , err := f .stakingKeeper .ValidatorAddressCodec ().StringToBytes (validator .GetOperator ())
527526 assert .NilError (t , err )
528- _ , _ , err = f .stakingKeeper .Undelegate (f .ctx , delegator , valbz , types .FlexiblePeriodDelegationID , shares , rewardsShares )
527+ _ , _ , err = f .stakingKeeper .Undelegate (f .ctx , delegator , valbz , stakingtypes .FlexiblePeriodDelegationID , shares , rewardsShares )
529528 assert .NilError (t , err )
530529
531530 req := & stakingtypes.QueryUnbondingDelegationRequest {
@@ -542,7 +541,7 @@ func TestGRPCUnbondingDelegation(t *testing.T) {
542541 shares1 , rewardsShare2 , err := fundAccountAndDelegate (f , t , delegatorAddr1 , validator , f .amt1 )
543542 assert .NilError (t , err )
544543
545- _ , _ , err = f .stakingKeeper .Undelegate (f .ctx , delegatorAddr1 , validatorAddr1 , types .FlexiblePeriodDelegationID , shares1 , rewardsShare2 )
544+ _ , _ , err = f .stakingKeeper .Undelegate (f .ctx , delegatorAddr1 , validatorAddr1 , stakingtypes .FlexiblePeriodDelegationID , shares1 , rewardsShare2 )
546545 assert .NilError (t , err )
547546
548547 req := & stakingtypes.QueryUnbondingDelegationRequest {
@@ -636,7 +635,7 @@ func TestGRPCDelegatorUnbondingDelegations(t *testing.T) {
636635 assert .NilError (t , err )
637636 valbz , err := f .stakingKeeper .ValidatorAddressCodec ().StringToBytes (validator .GetOperator ())
638637 assert .NilError (t , err )
639- _ , _ , err = f .stakingKeeper .Undelegate (f .ctx , delegator , valbz , types .FlexiblePeriodDelegationID , shares , rewardsShares )
638+ _ , _ , err = f .stakingKeeper .Undelegate (f .ctx , delegator , valbz , stakingtypes .FlexiblePeriodDelegationID , shares , rewardsShares )
640639 assert .NilError (t , err )
641640 }
642641
@@ -654,7 +653,7 @@ func TestGRPCDelegatorUnbondingDelegations(t *testing.T) {
654653 shares1 , rewardsShare2 , err := fundAccountAndDelegate (f , t , delegatorAddr1 , validator , f .amt1 )
655654 assert .NilError (t , err )
656655
657- _ , _ , err = f .stakingKeeper .Undelegate (f .ctx , delegatorAddr1 , validatorAddr1 , types .FlexiblePeriodDelegationID , shares1 , rewardsShare2 )
656+ _ , _ , err = f .stakingKeeper .Undelegate (f .ctx , delegatorAddr1 , validatorAddr1 , stakingtypes .FlexiblePeriodDelegationID , shares1 , rewardsShare2 )
658657 assert .NilError (t , err )
659658
660659 req := & stakingtypes.QueryDelegatorUnbondingDelegationsRequest {
0 commit comments