Skip to content

Commit

Permalink
types test
Browse files Browse the repository at this point in the history
  • Loading branch information
mj850 committed Dec 2, 2024
1 parent d57d078 commit fae9b1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/confidentialtransfers/types/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ func TestMsgInitializeAccount_FromProto(t *testing.T) {
decryptedRemainingBalance, err := encryption.DecryptAESGCM(result.DecryptableBalance, aesPK)
assert.NoError(t, err)

assert.Equal(t, uint64(0), decryptedRemainingBalance)
assert.Equal(t, new(big.Int).SetUint64(0), decryptedRemainingBalance)

// Make sure the proofs are valid
assert.True(t, zkproofs.VerifyPubKeyValidity(
Expand Down Expand Up @@ -592,7 +592,7 @@ func TestMsgWithdraw_FromProto(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, m.FromAddress, result.FromAddress)
assert.Equal(t, m.Denom, result.Denom)
assert.Equal(t, m.Amount, result.Amount)
assert.Equal(t, m.Amount, result.Amount.String())
assert.Equal(t, m.DecryptableBalance, result.DecryptableBalance)
assert.True(t, newBalanceCommitment.C.Equal(result.RemainingBalanceCommitment.C))
assert.True(t, newBalanceCommitment.D.Equal(result.RemainingBalanceCommitment.D))
Expand Down

0 comments on commit fae9b1c

Please sign in to comment.