From 44483b7aae7979e273cce91f0fd72568f5f75ac5 Mon Sep 17 00:00:00 2001 From: Victoria Erokhina Date: Thu, 12 Dec 2024 10:25:56 +0000 Subject: [PATCH] replace err with nil --- pkg/wallet/risk.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/wallet/risk.go b/pkg/wallet/risk.go index 53ea88e6..3edc0e76 100644 --- a/pkg/wallet/risk.go +++ b/pkg/wallet/risk.go @@ -68,13 +68,13 @@ func ExtractRiskFromMessage(m abi.MessageRelaxed, risk Risk, mode byte) (Risk, e switch x := msgBody.(type) { case abi.NftTransferMsgBody: if destination == nil { - return risk, err + return risk, nil } // here, destination is an NFT risk.Nfts = append(risk.Nfts, *destination) case abi.JettonBurnMsgBody: if destination == nil { - return risk, err + return risk, nil } // here, destination is a jetton wallet amount := big.Int(x.Amount) @@ -83,7 +83,7 @@ func ExtractRiskFromMessage(m abi.MessageRelaxed, risk Risk, mode byte) (Risk, e risk.Jettons[*destination] = *total.Add(¤tJettons, &amount) case abi.JettonTransferMsgBody: if destination == nil { - return risk, err + return risk, nil } // here, destination is a jetton wallet amount := big.Int(x.Amount) @@ -91,5 +91,5 @@ func ExtractRiskFromMessage(m abi.MessageRelaxed, risk Risk, mode byte) (Risk, e var total big.Int risk.Jettons[*destination] = *total.Add(¤tJettons, &amount) } - return risk, err + return risk, nil }