mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-12-05 02:11:18 +01:00
nip60: EnsureWallet() publishes an update if a wallet wasn't found.
This commit is contained in:
@@ -71,10 +71,10 @@ func TestWalletTransfer(t *testing.T) {
|
||||
}
|
||||
|
||||
// ensure wallets exist and have tokens
|
||||
w1 := stash1.EnsureWallet("test")
|
||||
w1 := stash1.EnsureWallet(ctx, "test")
|
||||
require.Greater(t, w1.Balance(), uint64(0), "wallet 1 has no balance")
|
||||
|
||||
w2 := stash2.EnsureWallet("test")
|
||||
w2 := stash2.EnsureWallet(ctx, "test")
|
||||
initialBalance1 := w1.Balance()
|
||||
initialBalance2 := w2.Balance()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user