nip60: an e2e test with two wallets sending tokens around, but it's broken.

This commit is contained in:
fiatjaf
2025-01-29 22:17:57 -03:00
parent 4ca8320e18
commit be65134354
2 changed files with 132 additions and 1 deletions

View File

@@ -141,7 +141,7 @@ func loadStash(
// if we already have a wallet with this identifier then we must be careful
if curr, ok := wl.wallets[wallet.Identifier]; ok {
// if the metadata we have is newer ignore this event
if curr.event.CreatedAt > ie.Event.CreatedAt {
if curr.event != nil && curr.event.CreatedAt > ie.Event.CreatedAt {
wl.Unlock()
continue
}