Skip to content

Commit

Permalink
update unsupported number of fees
Browse files Browse the repository at this point in the history
  • Loading branch information
tuantran1702 committed May 28, 2024
1 parent 28a889c commit 4e0f98e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/feeabs/ante/decorate.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ func (famfd FeeAbstrationMempoolFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk
fmt.Println("nativeCoinsFees", nativeCoinsFees)
feeCoinsNonZeroDenom = nativeCoinsFees
}
} else {
return ctx, sdkerrors.Wrapf(errorstypes.ErrNotSupported, "should have only one fee denom in feeCoinsNonZeroDenom, got %s", feeCoinsNonZeroDenom.String())
} else if feeCoinsNonZeroDenom.Len() > 1 {
return ctx, sdkerrors.Wrapf(errorstypes.ErrNotSupported, "should have only one fee denom in feeCoinsNonZeroDenom, got %d", feeCoinsNonZeroDenom.Len())
}

// After replace the feeCoinsNonZeroDenom, feeCoinsNonZeroDenom must be in denom subset of nonZeroCoinFeesReq
Expand Down

0 comments on commit 4e0f98e

Please sign in to comment.