Skip to content

Commit

Permalink
fix panic in straws
Browse files Browse the repository at this point in the history
  • Loading branch information
erokhinav committed Jan 31, 2025
1 parent 3203f8d commit 41b2465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bath/straws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 41b2465

Please sign in to comment.