Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: feePayer for Sudo fees #129

Closed
Prev Previous commit
Next Next commit
fix: test fixes
  • Loading branch information
ratik committed Jan 26, 2023
commit c5294aea7042ec83650964d9e212135e89ac7057
7 changes: 4 additions & 3 deletions x/feerefunder/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import (
)

const (
TestAddress = "neutron17dtl0mjt3t77kpuhg2edqzjpszulwhgzcdvagh"
TestAddress = "neutron17dtl0mjt3t77kpuhg2edqzjpszulwhgzcdvagh"
TestFeePayerAddress = "neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2"
)

func TestKeeperCheckFees(t *testing.T) {
Expand Down Expand Up @@ -223,7 +224,7 @@ func TestKeeperLockFeesAtFeePayeer(t *testing.T) {

payerInfo := types.PayerInfo{
Sender: sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress),
FeePayer: sdk.MustAccAddressFromBech32(TestAddress),
FeePayer: sdk.MustAccAddressFromBech32(TestFeePayerAddress),
}

k.SetParams(ctx, types.Params{
Expand Down Expand Up @@ -268,7 +269,7 @@ func TestKeeperLockFeesAtFeePayeer(t *testing.T) {
require.Equal(t, sdk.Events{
sdk.NewEvent(
types.EventTypeLockFees,
sdk.NewAttribute(types.AttributeKeyPayer, payerInfo.Sender.String()),
sdk.NewAttribute(types.AttributeKeyPayer, payerInfo.FeePayer.String()),
sdk.NewAttribute(types.AttributeKeyPortID, packet.PortId),
sdk.NewAttribute(types.AttributeKeyChannelID, packet.ChannelId),
sdk.NewAttribute(types.AttributeKeySequence, strconv.FormatUint(packet.Sequence, 10)),
Expand Down