-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sdk 47 with memiavl #10
Conversation
for acc := range maccPerms { | ||
blockedAddrs[authtypes.NewModuleAddress(acc).String()] = !allowedReceivingModAcc[acc] | ||
} |
Check failure
Code scanning / gosec
the value in the range statement should be _ unless copying a map: want: for key := range m Error
memiavl/db.go
Outdated
if err != nil { | ||
return 0, err | ||
} | ||
return walVersion(lastIndex, uint32(metadata.InitialVersion)), nil |
Check failure
Code scanning / gosec
Potential integer overflow by integer type conversion Error
01a56ce
to
35fc9a0
Compare
txHash = res.Hash.String() | ||
} | ||
|
||
parsedLogs, _ := sdk.ParseABCILogs(res.DeliverTx.Log) |
Check warning
Code scanning / gosec
Returned error is not propagated up the stack. Warning
txHash = res.Hash.String() | ||
} | ||
|
||
parsedLogs, _ := sdk.ParseABCILogs(res.CheckTx.Log) |
Check warning
Code scanning / gosec
Returned error is not propagated up the stack. Warning
versiondb/tsrocksdb/store.go
Outdated
defer batch.Destroy() | ||
|
||
var ts [TimestampSize]byte | ||
binary.LittleEndian.PutUint64(ts[:], uint64(version)) |
Check failure
Code scanning / gosec
Potential integer overflow by integer type conversion Error
versiondb/client/restore.go
Outdated
} | ||
}() | ||
|
||
return versionDB.Import(int64(height), ch) |
Check failure
Code scanning / gosec
Potential integer overflow by integer type conversion Error
versiondb/client/restore.go
Outdated
return err | ||
} | ||
|
||
snapshot, chChunks, err := store.Load(height, uint32(format)) |
Check failure
Code scanning / gosec
Potential integer overflow by integer type conversion Error
Solution: - introduce "--sdk46-compact" flag to support both.
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)