integration tests: fix issue with eth_call (pass chain config via json file to match geth chain config)

added additional test case: gets balance for a non-existing account without block number
This commit is contained in:
ramil
2021-04-23 12:46:35 +03:00
parent 1141f3909c
commit 97d8c4dc86
4 changed files with 57 additions and 2 deletions
+7
View File
@@ -644,6 +644,10 @@ func (pea *PublicEthAPI) GetBalance(ctx context.Context, address common.Address,
return res, nil
}
}
if err == sql.ErrNoRows {
return (*hexutil.Big)(big.NewInt(0)), nil
}
return nil, err
}
@@ -680,6 +684,9 @@ func (pea *PublicEthAPI) GetStorageAt(ctx context.Context, address common.Addres
return res, nil
}
}
if err == sql.ErrNoRows {
return make([]byte, 32), nil
}
return nil, err
}