From 020148c18445a9f662afda09cdf429383e751110 Mon Sep 17 00:00:00 2001 From: lumtis Date: Mon, 18 Sep 2023 13:31:14 +0200 Subject: [PATCH] fix unit test --- x/crosschain/keeper/gas_payment_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/crosschain/keeper/gas_payment_test.go b/x/crosschain/keeper/gas_payment_test.go index 61c5ff69d0..8209af9fae 100644 --- a/x/crosschain/keeper/gas_payment_test.go +++ b/x/crosschain/keeper/gas_payment_test.go @@ -306,7 +306,7 @@ func TestKeeper_PayGasNativeAndUpdateCctx(t *testing.T) { } err := k.PayGasNativeAndUpdateCctx(ctx, chainID, &cctx, math.NewUint(inputAmount)) - require.ErrorIs(t, err, types.ErrUnableToGetGasPrice) + require.ErrorIs(t, err, types.ErrCannotFindGasParams) }) t.Run("should fail if not enough amount for the fee", func(t *testing.T) { @@ -471,7 +471,7 @@ func TestKeeper_PayGasInERC20AndUpdateCctx(t *testing.T) { } err := k.PayGasInERC20AndUpdateCctx(ctx, chainID, &cctx, math.NewUint(inputAmount), false) - require.ErrorIs(t, err, types.ErrUnableToGetGasPrice) + require.ErrorIs(t, err, types.ErrCannotFindGasParams) }) t.Run("should fail if can't find the ZRC20", func(t *testing.T) {