Skip to content

Commit

Permalink
Fix gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
swift1337 committed Sep 12, 2024
1 parent ce40b7e commit bfc40da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions e2e/runner/ton/coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
}
1 change: 1 addition & 0 deletions e2e/runner/ton/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit bfc40da

Please sign in to comment.