Skip to content

Commit

Permalink
add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
Geapefurit committed Oct 16, 2024
1 parent 1c57d57 commit 21ead33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/powerrental/basecreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
feeordermwpb "github.com/NpoolPlatform/message/npool/order/mw/v1/fee"
paymentmwpb "github.com/NpoolPlatform/message/npool/order/mw/v1/payment"
powerrentalordermwpb "github.com/NpoolPlatform/message/npool/order/mw/v1/powerrental"
"github.com/NpoolPlatform/order-gateway/pkg/common"
ordergwcommon "github.com/NpoolPlatform/order-gateway/pkg/common"
constant "github.com/NpoolPlatform/order-gateway/pkg/const"
ordercommon "github.com/NpoolPlatform/order-gateway/pkg/order/common"
Expand Down Expand Up @@ -574,7 +573,7 @@ func (h *baseCreateHandler) validateOrderBenefitReqs(ctx context.Context) error
return wlog.Errorf("good coins and order benefit accounts do not match")
}

if err := common.CheckAddress(ctx, *req.CoinTypeID, *req.Address); err != nil {
if err := ordergwcommon.CheckAddress(ctx, *req.CoinTypeID, *req.Address); err != nil {
return wlog.WrapError(err)
}
}
Expand Down

0 comments on commit 21ead33

Please sign in to comment.