Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 4, 2024
1 parent 579dbcb commit fc2fe81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ func (app *EthermintApp) RegisterUpgradeHandlers() {
{
params := app.EvmKeeper.GetParams(sdkCtx)
params.HeaderHashNum = 10000
app.EvmKeeper.SetParams(sdkCtx, params)
if err := app.EvmKeeper.SetParams(sdkCtx, params); err != nil {
return m, err

Check warning on line 39 in app/upgrades.go

View check run for this annotation

Codecov / codecov/patch

app/upgrades.go#L36-L39

Added lines #L36 - L39 were not covered by tests
}
}
return m, nil

Check warning on line 42 in app/upgrades.go

View check run for this annotation

Codecov / codecov/patch

app/upgrades.go#L42

Added line #L42 was not covered by tests
},
Expand Down
2 changes: 1 addition & 1 deletion x/evm/types/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func ObjectBloomKey(txIndex, msgIndex int) []byte {
}

func GetHeaderHashKey(height uint64) []byte {
var key [1+8]byte
var key [1 + 8]byte
key[0] = prefixHeaderHash
binary.BigEndian.PutUint64(key[1:], height)
return key[:]

Check warning on line 120 in x/evm/types/key.go

View check run for this annotation

Codecov / codecov/patch

x/evm/types/key.go#L116-L120

Added lines #L116 - L120 were not covered by tests
Expand Down

0 comments on commit fc2fe81

Please sign in to comment.