Skip to content

feat: enhanced eth_getLogs with timestamp range validation and new error handling #1887

feat: enhanced eth_getLogs with timestamp range validation and new error handling

feat: enhanced eth_getLogs with timestamp range validation and new error handling #1887

GitHub Actions / Test Results failed Jan 28, 2025 in 0s

5 fail, 33 pass in 6m 5s

  3 files   -  17  114 suites   - 198   6m 5s ⏱️ - 31m 54s
 38 tests  - 575   33 ✅  - 573  0 💤  - 4  5 ❌ +2 
108 runs   - 593  103 ✅  - 588  0 💤  - 4  5 ❌  - 1 

Results for commit d8743aa. ± Comparison against earlier commit f1f8df1.

Annotations

Check warning on line 0 in @release contract owner transfers tokens

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 3 runs failed: RPC Server Acceptance Tests Acceptance tests @erc20 Acceptance Tests HTS token should behave like erc20… address when the spender has enough tokens @release contract owner transfers tokens (@release contract owner transfers tokens)

test-results.4abad8d82c2a7ef245dfa5d0d45a41d4.xml [took 5s]
Raw output
expected '10000' to equal '0'
AssertionError: expected '10000' to equal '0'
    at Context.<anonymous> (packages/server/tests/acceptance/erc20.spec.ts:201:57)
    at Generator.next (<anonymous>)
    at fulfilled (packages/server/tests/acceptance/erc20.spec.ts:47:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

      + expected - actual

      -10000
      +0

Check warning on line 0 in emits a transfer event

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 3 runs failed: RPC Server Acceptance Tests Acceptance tests @erc20 Acceptance Tests HTS token should behave like erc20…s when the recipient is not the zero address when the spender has enough tokens emits a transfer event (emits a transfer event)

test-results.4abad8d82c2a7ef245dfa5d0d45a41d4.xml [took 4m 0s]
Raw output
Timeout of 240000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/_work/hedera-json-rpc-relay/hedera-json-rpc-relay/packages/server/tests/acceptance/index.spec.ts)
Error: Timeout of 240000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/_work/hedera-json-rpc-relay/hedera-json-rpc-relay/packages/server/tests/acceptance/index.spec.ts)
    at listOnTimeout (node:internal/timers:581:17)
    at processTimers (node:internal/timers:519:7)

Check warning on line 0 in other account transfers tokens back to owner

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 3 runs failed: RPC Server Acceptance Tests Acceptance tests @erc20 Acceptance Tests HTS token should behave like erc20… when the spender has enough tokens other account transfers tokens back to owner (other account transfers tokens back to owner)

test-results.4abad8d82c2a7ef245dfa5d0d45a41d4.xml [took 0s]
Raw output
execution reverted (no data present; likely require(false) occurred (action="estimateGas", data="0x", reason="require(false)", transaction={ "data": "0xa9059cbb000000000000000000000000b7b6ef014476463cb0b463196aa296de748d258a0000000000000000000000000000000000000000000000000000000000002710", "from": "0xD8A1d35EA4369Fb91dEFE9d491D1B6ADBDBd3AAA", "to": "0x0000000000000000000000000000000000000413" }, invocation=null, revert=null, code=CALL_EXCEPTION, version=6.13.5)
Error: execution reverted (no data present; likely require(false) occurred (action="estimateGas", data="0x", reason="require(false)", transaction={ "data": "0xa9059cbb000000000000000000000000b7b6ef014476463cb0b463196aa296de748d258a0000000000000000000000000000000000000000000000000000000000002710", "from": "0xD8A1d35EA4369Fb91dEFE9d491D1B6ADBDBd3AAA", "to": "0x0000000000000000000000000000000000000413" }, invocation=null, revert=null, code=CALL_EXCEPTION, version=6.13.5)
    at makeError (packages/server/node_modules/ethers/src.ts/utils/errors.ts:694:21)
    at getBuiltinCallException (packages/server/node_modules/ethers/src.ts/abi/abi-coder.ts:118:21)
    at Function.getBuiltinCallException (packages/server/node_modules/ethers/src.ts/abi/abi-coder.ts:235:16)
    at JsonRpcProvider.getRpcError (packages/server/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:989:32)
    at /home/runner/_work/hedera-json-rpc-relay/hedera-json-rpc-relay/packages/server/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:563:45
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check warning on line 0 in "before each" hook for "reverts"

See this annotation in the file changed.

@github-actions github-actions / Test Results

RPC Server Acceptance Tests Acceptance tests @erc20 Acceptance Tests HTS token should behave like erc20 transfer from when the …ress when the spender does not have enough allowance "before each" hook for "reverts" ("before each" hook for "reverts") failed

test-results.5259438e65906bb9f806b0df6d5ea4e2.xml [took 0s]
Raw output
could not coalesce error (error={ "code": -32011, "message": "[Request ID: 7986876d-da96-45cc-becf-1aa93d85d96d] Exceeded maximum mirror node pagination count: 25" }, payload={ "id": 328, "jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": [ "latest", false ] }, code=UNKNOWN_ERROR, version=6.13.5)
Error: could not coalesce error (error={ "code": -32011, "message": "[Request ID: 7986876d-da96-45cc-becf-1aa93d85d96d] Exceeded maximum mirror node pagination count: 25" }, payload={ "id": 328, "jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": [ "latest", false ] }, code=UNKNOWN_ERROR, version=6.13.5)
    at makeError (packages/server/node_modules/ethers/src.ts/utils/errors.ts:694:21)
    at JsonRpcProvider.getRpcError (packages/server/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:1059:25)
    at /home/runner/_work/hedera-json-rpc-relay/hedera-json-rpc-relay/packages/server/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:563:45
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check warning on line 0 in "before each" hook for "reverts"

See this annotation in the file changed.

@github-actions github-actions / Test Results

RPC Server Acceptance Tests Acceptance tests @erc20 Acceptance Tests HTS token should behave like erc20 transfer from when the … zero address when the recipient is the zero address "before each" hook for "reverts" ("before each" hook for "reverts") failed

test-results.5259438e65906bb9f806b0df6d5ea4e2.xml [took 0s]
Raw output
could not coalesce error (error={ "code": -32011, "message": "[Request ID: 7928b2d9-10c0-43bf-8e9c-3d44774632d9] Exceeded maximum mirror node pagination count: 25" }, payload={ "id": 336, "jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": [ "latest", false ] }, code=UNKNOWN_ERROR, version=6.13.5)
Error: could not coalesce error (error={ "code": -32011, "message": "[Request ID: 7928b2d9-10c0-43bf-8e9c-3d44774632d9] Exceeded maximum mirror node pagination count: 25" }, payload={ "id": 336, "jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": [ "latest", false ] }, code=UNKNOWN_ERROR, version=6.13.5)
    at makeError (packages/server/node_modules/ethers/src.ts/utils/errors.ts:694:21)
    at JsonRpcProvider.getRpcError (packages/server/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:1059:25)
    at /home/runner/_work/hedera-json-rpc-relay/hedera-json-rpc-relay/packages/server/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:563:45
    at processTicksAndRejections (node:internal/process/task_queues:95:5)