Skip to content

Commit 41b2465

Browse files
committed
fix panic in straws
1 parent 3203f8d commit 41b2465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/bath/straws.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ var JettonTransferPTONStraw = Straw[BubbleJettonTransfer]{
8282
newAction.amount = body.Amount
8383
newAction.isWrappedTon = true
8484
recipient, err := ton.AccountIDFromTlb(body.Destination)
85-
if err == nil {
85+
if err == nil && recipient != nil {
8686
newAction.recipient = &Account{Address: *recipient}
8787
bubble.Accounts = append(bubble.Accounts, *recipient)
8888
}

0 commit comments

Comments
 (0)