From bfc40dadebc249dad9936ae52b4b1f936cb010b0 Mon Sep 17 00:00:00 2001 From: Dmitry S <11892559+swift1337@users.noreply.github.com> Date: Thu, 12 Sep 2024 17:33:02 +0300 Subject: [PATCH] Fix gosec --- e2e/runner/ton/coin.go | 1 + e2e/runner/ton/deployer.go | 1 + 2 files changed, 2 insertions(+) diff --git a/e2e/runner/ton/coin.go b/e2e/runner/ton/coin.go index 3fc1a48f31..dcd1c86009 100644 --- a/e2e/runner/ton/coin.go +++ b/e2e/runner/ton/coin.go @@ -22,5 +22,6 @@ func UintToCoins(v math.Uint) tlb.Coins { } func FormatCoins(v math.Uint) string { + // #nosec G115 always in range return utils.HumanFriendlyCoinsRepr(int64(v.Uint64())) } diff --git a/e2e/runner/ton/deployer.go b/e2e/runner/ton/deployer.go index be6f771bd2..7304e88a11 100644 --- a/e2e/runner/ton/deployer.go +++ b/e2e/runner/ton/deployer.go @@ -42,6 +42,7 @@ func NewDeployer(client blockchain, cfg Faucet) (*Deployer, error) { return nil, errors.Wrap(err, "invalid mnemonic") } + // #nosec G115 always in range w, err := wallet.New(pk, version, client, wallet.WithSubWalletID(uint32(cfg.SubWalletId))) if err != nil { return nil, errors.Wrap(err, "failed to create wallet")