nosec G705

This commit is contained in:
0xmuralik
2022-10-18 12:14:29 +05:30
parent 906ec2a06c
commit 670dc398e4
13 changed files with 16 additions and 11 deletions
+2 -4
View File
@@ -32,13 +32,11 @@ import (
"github.com/ethereum/go-ethereum/crypto"
)
// #nosec 101
const (
/* #nosec */
OpWeightMsgEthSimpleTransfer = "op_weight_msg_eth_simple_transfer"
/* #nosec */
OpWeightMsgEthCreateContract = "op_weight_msg_eth_create_contract"
/* #nosec */
OpWeightMsgEthCallContract = "op_weight_msg_eth_call_contract"
OpWeightMsgEthCallContract = "op_weight_msg_eth_call_contract"
)
const (
+1
View File
@@ -53,6 +53,7 @@ func newJournal() *journal {
func (j *journal) sortedDirties() []common.Address {
keys := make([]common.Address, len(j.dirties))
i := 0
// #nosec G705
for k := range j.dirties {
keys[i] = k
i++
+1
View File
@@ -39,6 +39,7 @@ type Storage map[common.Hash]common.Hash
func (s Storage) SortedKeys() []common.Hash {
keys := make([]common.Hash, len(s))
i := 0
// #nosec G705
for k := range s {
keys[i] = k
i++