From 5f3fc7f40f6110ade89ad058dbe9582fc166c9de Mon Sep 17 00:00:00 2001 From: Denis Subbotin Date: Fri, 8 Sep 2023 16:07:59 +0300 Subject: [PATCH] another fix for burning --- pkg/bath/jettons.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/bath/jettons.go b/pkg/bath/jettons.go index 5f5c7322..fdd463cd 100644 --- a/pkg/bath/jettons.go +++ b/pkg/bath/jettons.go @@ -124,7 +124,7 @@ var JettonBurnStraw = Straw[BubbleJettonBurn]{ if tx.inputFrom != nil { newAction.sender = *tx.inputFrom } - if tx.additionalInfo.JettonMaster != nil { + if tx.additionalInfo.JettonMaster != nil { //todo: find why it doesn't set https://dev.tonviewer.com/transaction/b563b85a8e56bad6333a5999a34137f302b14764b4ad1ebb4ecbecab2e16fa32 newAction.master = *tx.additionalInfo.JettonMaster } newAction.senderWallet = tx.account.Address @@ -133,6 +133,10 @@ var JettonBurnStraw = Straw[BubbleJettonBurn]{ }, SingleChild: &Straw[BubbleJettonBurn]{ CheckFuncs: []bubbleCheck{IsTx, HasOperation(abi.JettonBurnNotificationMsgOp)}, - Optional: true, + Builder: func(newAction *BubbleJettonBurn, bubble *Bubble) error { //todo: remove after fixing additionalInfo few lines above + newAction.master = bubble.Info.(BubbleTx).account.Address + return nil + }, + Optional: true, }, }