From 41b2465e4cf8578c0bc9e0c9456747a00eb62eb4 Mon Sep 17 00:00:00 2001 From: Victoria Erokhina Date: Fri, 31 Jan 2025 12:02:11 +0000 Subject: [PATCH] fix panic in straws --- pkg/bath/straws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bath/straws.go b/pkg/bath/straws.go index 697b3b1f..dac2cb8c 100644 --- a/pkg/bath/straws.go +++ b/pkg/bath/straws.go @@ -82,7 +82,7 @@ var JettonTransferPTONStraw = Straw[BubbleJettonTransfer]{ newAction.amount = body.Amount newAction.isWrappedTon = true recipient, err := ton.AccountIDFromTlb(body.Destination) - if err == nil { + if err == nil && recipient != nil { newAction.recipient = &Account{Address: *recipient} bubble.Accounts = append(bubble.Accounts, *recipient) }