Fix inconsistency between api doc and code: hermezEthereumAddress => hezEthereumAddress

This commit is contained in:
Arnau B
2020-12-16 12:29:46 +01:00
parent 8e1bfd150d
commit 226c49f28f
6 changed files with 18 additions and 13 deletions

View File

@@ -124,7 +124,7 @@ func TestGetExits(t *testing.T) {
}
}
path = fmt.Sprintf(
"%s?hermezEthereumAddress=%s&limit=%d",
"%s?hezEthereumAddress=%s&limit=%d",
endpoint, account.EthAddr, limit,
)
err = doGoodReqPaginated(path, historydb.OrderAsc, &testExitsResponse{}, appendIter)
@@ -244,7 +244,7 @@ func TestGetExits(t *testing.T) {
assertExitAPIs(t, flipedExits, fetchedExits)
// 400
path = fmt.Sprintf(
"%s?accountIndex=%s&hermezEthereumAddress=%s",
"%s?accountIndex=%s&hezEthereumAddress=%s",
endpoint, idx, account.EthAddr,
)
err = doBadReq("GET", path, nil, 400)