Skip to content

Commit

Permalink
fix gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 5, 2023
1 parent 7c4c82a commit 710db9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/cronos/keeper/precompiles/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ func init() {
if err := irelayerABI.UnmarshalJSON([]byte(relayer.RelayerFunctionsMetaData.ABI)); err != nil {
panic(err)
}
for methodName := range irelayerABI.Methods {
for _, method := range irelayerABI.Methods {
var methodID [4]byte
copy(methodID[:], irelayerABI.Methods[methodName].ID[:4])
switch methodName {
copy(methodID[:], irelayerABI.Methods[method.Name].ID[:4])
switch method.Name {
case CreateClient:
relayerGasRequiredByMethod[methodID] = 200000
case RecvPacket, Acknowledgement:
Expand Down

0 comments on commit 710db9a

Please sign in to comment.