Skip to content

Commit

Permalink
chore: fix typos (#4171)
Browse files Browse the repository at this point in the history
This PR fixes two spelling mistakes:

Corrects "Balalance" to "Balance" in variable name
Fixes "Permissable" to "Permissible" in constant name

These changes improve code readability and maintain consistent
terminology without affecting functionality. All tests should continue
to pass.

---------

Co-authored-by: nina / ნინა <[email protected]>
  • Loading branch information
Vikt0rPavlik and ninabarbakadze authored Jan 2, 2025
1 parent 8629e0e commit 39a0ab2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/pfm/pfm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ func TestPacketForwardMiddlewareTransfer(t *testing.T) {
coordinator.Setup(path2)

celestiaApp := celestia.App.(*app.App)
originalCelestiaBalalance := celestiaApp.BankKeeper.GetBalance(celestia.GetContext(), celestia.SenderAccount.GetAddress(), sdk.DefaultBondDenom)
originalCelestiaBalance := celestiaApp.BankKeeper.GetBalance(celestia.GetContext(), celestia.SenderAccount.GetAddress(), sdk.DefaultBondDenom)

// Take half of the original balance
transferAmount := originalCelestiaBalalance.Amount.QuoRaw(2)
transferAmount := originalCelestiaBalance.Amount.QuoRaw(2)
timeoutHeight := clienttypes.NewHeight(1, 300)
coinToSendToB := sdk.NewCoin(sdk.DefaultBondDenom, transferAmount)

Expand Down Expand Up @@ -120,7 +120,7 @@ func TestPacketForwardMiddlewareTransfer(t *testing.T) {
require.NoError(t, err)

sourceBalanceAfter := celestiaApp.BankKeeper.GetBalance(celestia.GetContext(), celestia.SenderAccount.GetAddress(), sdk.DefaultBondDenom)
require.Equal(t, originalCelestiaBalalance.Amount.Sub(transferAmount), sourceBalanceAfter.Amount)
require.Equal(t, originalCelestiaBalance.Amount.Sub(transferAmount), sourceBalanceAfter.Amount)

ibcDenomTrace := types.ParseDenomTrace(types.GetPrefixedDenom(packet.GetDestPort(), packet.GetDestChannel(), sdk.DefaultBondDenom))
destinationBalanceAfter := chainB.App.(*SimApp).BankKeeper.GetBalance(chainB.GetContext(), chainB.SenderAccount.GetAddress(), ibcDenomTrace.IBCDenom())
Expand Down

0 comments on commit 39a0ab2

Please sign in to comment.