Skip to content

Commit 1d0cc06

Browse files
committed
fix nil pointer
1 parent dfd0af5 commit 1d0cc06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/bath/matcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func IsJettonTransfer(b *Bubble) bool {
148148
func IsJettonReceiver(iface abi.ContractInterface) bubbleCheck {
149149
return func(bubble *Bubble) bool {
150150
t, ok := bubble.Info.(BubbleJettonTransfer)
151-
if !ok {
151+
if !ok || t.recipient == nil {
152152
return false
153153
}
154154
return t.recipient.Is(iface)

0 commit comments

Comments
 (0)