Skip to content

Commit

Permalink
balance: use msat
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiidb committed Aug 22, 2023
1 parent 148bcc8 commit d4823a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func TestHandleEvent(t *testing.T) {
PubKey: senderPubkey,
Content: malformedPayload,
})

decrypted, err = nip04.Decrypt(res.Content, ss)
assert.NoError(t, err)
receivedError := &Nip47Response{
Expand Down Expand Up @@ -298,8 +298,8 @@ func TestHandleEvent(t *testing.T) {
}
err = json.Unmarshal([]byte(decrypted), received)
assert.NoError(t, err)
assert.Equal(t, int64(21), received.Result.(*Nip47BalanceResponse).Balance)
assert.Equal(t, 100, received.Result.(*Nip47BalanceResponse).MaxAmount)
assert.Equal(t, int64(21000), received.Result.(*Nip47BalanceResponse).Balance)
assert.Equal(t, 100000, received.Result.(*Nip47BalanceResponse).MaxAmount)
assert.Equal(t, "never", received.Result.(*Nip47BalanceResponse).BudgetRenewal)

// make invoice: without permission
Expand Down

0 comments on commit d4823a9

Please sign in to comment.