mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
fix lint errs
This commit is contained in:
parent
c73c10a3bb
commit
489ef435fb
2 changed files with 3 additions and 3 deletions
|
|
@ -1024,7 +1024,7 @@ func TestSimulateV1(t *testing.T) {
|
||||||
coinbase = "0x000000000000000000000000000000000000ffff"
|
coinbase = "0x000000000000000000000000000000000000ffff"
|
||||||
genesis = &core.Genesis{
|
genesis = &core.Genesis{
|
||||||
Config: params.TestChainConfig,
|
Config: params.TestChainConfig,
|
||||||
Alloc: core.GenesisAlloc{
|
Alloc: types.GenesisAlloc{
|
||||||
accounts[0].addr: {Balance: big.NewInt(params.Ether)},
|
accounts[0].addr: {Balance: big.NewInt(params.Ether)},
|
||||||
accounts[1].addr: {Balance: big.NewInt(params.Ether)},
|
accounts[1].addr: {Balance: big.NewInt(params.Ether)},
|
||||||
accounts[2].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{},
|
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.
|
// Test on solidity storage example. Set value in one call, read in next.
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -330,7 +330,7 @@ func (sim *simulator) computeBlockHash(ctx context.Context, n uint64, base *type
|
||||||
return h.Hash(), nil
|
return h.Hash(), nil
|
||||||
}
|
}
|
||||||
h := base
|
h := base
|
||||||
for i, _ := range headers {
|
for i := range headers {
|
||||||
tmp := headers[i]
|
tmp := headers[i]
|
||||||
// BLOCKHASH will only allow numbers prior to current block
|
// BLOCKHASH will only allow numbers prior to current block
|
||||||
// so no need to check that condition.
|
// so no need to check that condition.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue