Skip to content

Commit

Permalink
another fix for burning
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tron committed Sep 8, 2023
1 parent 59fe91b commit 5f3fc7f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/bath/jettons.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
},
}

0 comments on commit 5f3fc7f

Please sign in to comment.