fix lint errs

This commit is contained in:
Sina Mahmoodi 2024-02-19 19:42:32 +01:00
parent c73c10a3bb
commit 489ef435fb
2 changed files with 3 additions and 3 deletions

View file

@ -1024,7 +1024,7 @@ func TestSimulateV1(t *testing.T) {
coinbase = "0x000000000000000000000000000000000000ffff"
genesis = &core.Genesis{
Config: params.TestChainConfig,
Alloc: core.GenesisAlloc{
Alloc: types.GenesisAlloc{
accounts[0].addr: {Balance: big.NewInt(params.Ether)},
accounts[1].addr: {Balance: big.NewInt(params.Ether)},
accounts[2].addr: {Balance: big.NewInt(params.Ether)},
@ -1354,7 +1354,7 @@ func TestSimulateV1(t *testing.T) {
}},
}},
want: []blockRes{},
expectErr: &invalidBlockNumberError{message: fmt.Sprintf("block numbers must be in order: 11 <= 12")},
expectErr: &invalidBlockNumberError{message: "block numbers must be in order: 11 <= 12"},
},
// Test on solidity storage example. Set value in one call, read in next.
{

View file

@ -330,7 +330,7 @@ func (sim *simulator) computeBlockHash(ctx context.Context, n uint64, base *type
return h.Hash(), nil
}
h := base
for i, _ := range headers {
for i := range headers {
tmp := headers[i]
// BLOCKHASH will only allow numbers prior to current block
// so no need to check that condition.