Skip to content

Commit

Permalink
uni tests zeta accounting
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Feb 8, 2024
1 parent 2e3943d commit 09c3d8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/crosschain/keeper/zeta_accounting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ func TestKeeper_AddZetaAccounting(t *testing.T) {
func TestKeeper_RemoveZetaAbortedAmount(t *testing.T) {
t.Run("should remove aborted zeta amount", func(t *testing.T) {
k, ctx, _, _ := keepertest.CrosschainKeeper(t)
originalAmount := sdkmath.NewUint(100)
originalAmount := sdkmath.NewUintFromString("100000000000000000000000000000000000000000000000")
k.SetZetaAccounting(ctx, types.ZetaAccounting{
AbortedZetaAmount: originalAmount,
})
val, found := k.GetZetaAccounting(ctx)
require.True(t, found)
require.Equal(t, originalAmount, val.AbortedZetaAmount)
removeAmount := originalAmount.Sub(sdkmath.NewUint(50))
removeAmount := originalAmount.Sub(sdkmath.NewUintFromString("10000000000000000000000000000000000000000000000"))
err := k.RemoveZetaAbortedAmount(ctx, removeAmount)
require.NoError(t, err)
val, found = k.GetZetaAccounting(ctx)
Expand Down

0 comments on commit 09c3d8c

Please sign in to comment.