Skip to content

fix: fixed eth_getCode to now use blockNumber when address is an HTS token #9317

fix: fixed eth_getCode to now use blockNumber when address is an HTS token

fix: fixed eth_getCode to now use blockNumber when address is an HTS token #9317

GitHub Actions / Test Results failed Feb 3, 2025 in 0s

9 fail, 4 skipped, 608 pass in 51m 52s

 22 files  + 14  290 suites  +163   51m 52s ⏱️ + 17m 37s
621 tests +395  608 ✅ +384  4 💤 +4   9 ❌ + 7 
808 runs  +410  790 ✅ +394  6 💤 +6  12 ❌ +10 

Results for commit 2b386c3. ± Comparison against earlier commit f3fca08.

Annotations

Check warning on line 0 in @release captures transfer events

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 2 runs failed: RPC Server Acceptance Tests Acceptance tests @web-socket-batch-3 eth_subscribe Subscribes to hts tokens and listens for synthetic log events @release captures transfer events (@release captures transfer events)

test-results.818ddf608c0870f09bc16a0325d025a5.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/ws-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/ws-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 "before all" hook in "Debug API Test Suite"

See this annotation in the file changed.

@github-actions github-actions / Test Results

RPC Server Acceptance Tests Acceptance tests @api-batch-3 RPC Server Acceptance Tests Debug API Test Suite "before all" hook in "Debug API Test Suite" ("before all" hook in "Debug API Test Suite") failed

test-results.a91a0c4e5a9ba74edc24ce9e879587bf.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 "before all" hook in "@api-batch-2 RPC Server Acceptance Tests"

See this annotation in the file changed.

@github-actions github-actions / Test Results

RPC Server Acceptance Tests Acceptance tests @api-batch-2 RPC Server Acceptance Tests "before all" hook in "@api-batch-2 RPC Server Acceptance Tests" ("before all" hook in "@api-batch-2 RPC Server Acceptance Tests") failed

test-results.ec938e8f072fe652b0da4fc694ec6994.xml [took 15s]
Raw output
Request failed with status code 404
AxiosError: Request failed with status code 404
    at settle (node_modules/axios/lib/core/settle.js:19:12)
    at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:599:11)
    at IncomingMessage.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1698:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (node_modules/axios/lib/core/Axios.js:45:41)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Axios.request (node_modules/axios/lib/core/Axios.js:40:14)
    at Axios.request (node_modules/axios/lib/core/Axios.js:40:14)
    at Axios.request (node_modules/axios/lib/core/Axios.js:40:14)
    at Axios.request (node_modules/axios/lib/core/Axios.js:40:14)
    at Axios.request (node_modules/axios/lib/core/Axios.js:40:14)
    at Axios.request (node_modules/axios/lib/core/Axios.js:45:41)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check warning on line 0 in should return contract bytecode for valid contract address

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 2 runs failed: RPC Server Acceptance Tests Acceptance tests @api-batch-2 RPC Server Acceptance Tests eth_getCode should return contract bytecode for valid contract address (should return contract bytecode for valid contract address)

test-results.3b47bafe1147764c4212869544570cc0.xml [took 0s]
test-results.a4d05492ecd0f0f658769a37a873e98b.xml [took 0s]
Raw output
expected '0x' to equal '0x6080604052348015600f57600080fd5b506…'
AssertionError: expected '0x' to equal '0x6080604052348015600f57600080fd5b506…'
    at Context.<anonymous> (packages/server/tests/acceptance/rpc_batch2.spec.ts:797:25)
    at Generator.next (<anonymous>)
    at fulfilled (packages/server/tests/acceptance/rpc_batch2.spec.ts:24:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

      + expected - actual

      -0x
      +0x6080604052348015600f57600080fd5b506000610167905077618dc65e

Check warning on line 0 in should return redirect bytecode for HTS token address

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 2 runs failed: RPC Server Acceptance Tests Acceptance tests @api-batch-2 RPC Server Acceptance Tests eth_getCode should return redirect bytecode for HTS token address (should return redirect bytecode for HTS token address)

test-results.3b47bafe1147764c4212869544570cc0.xml [took 0s]
test-results.a4d05492ecd0f0f658769a37a873e98b.xml [took 0s]
Raw output
expected '0x' to equal '6080604052348015600f57600080fd5b50600…'
AssertionError: expected '0x' to equal '6080604052348015600f57600080fd5b50600…'
    at Context.<anonymous> (packages/server/tests/acceptance/rpc_batch2.spec.ts:812:25)
    at Generator.next (<anonymous>)
    at fulfilled (packages/server/tests/acceptance/rpc_batch2.spec.ts:24:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

      + expected - actual

      -0x
      +6080604052348015600f57600080fd5b506000610167905077618dc65e0000000000000000000000000000000000000003600052366000602037600080366018016008845af43d806000803e8160008114605857816000f35b816000fdfea2646970667358221220d8378feed472ba49a0005514ef7087017f707b45fb9bf56bb81bb93ff19a238b64736f6c634300080b0033

Check warning on line 0 in should throw error for invalid block number

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 2 runs failed: RPC Server Acceptance Tests Acceptance tests @api-batch-2 RPC Server Acceptance Tests eth_getCode should throw error for invalid block number (should throw error for invalid block number)

test-results.3b47bafe1147764c4212869544570cc0.xml [took 0s]
test-results.a4d05492ecd0f0f658769a37a873e98b.xml [took 0s]
Raw output
expected -32602 to equal -39012
AssertionError: expected -32602 to equal -39012
    at /home/runner/_work/hedera-json-rpc-relay/hedera-json-rpc-relay/packages/server/tests/helpers/assertions.ts:372:29
    at Generator.throw (<anonymous>)
    at rejected (packages/server/tests/helpers/assertions.ts:48:65)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

      + expected - actual

      --32602
      +-39012

Check warning on line 0 in @release should execute "eth_getCode" for contract evm_address

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 2 runs failed: RPC Server Acceptance Tests Acceptance tests @api-batch-2 RPC Server Acceptance Tests eth_getCode @release should execute "eth_getCode" for contract evm_address (@release should execute "eth_getCode" for contract evm_address)

test-results.a4d05492ecd0f0f658769a37a873e98b.xml [took 10s]
Raw output
server response 500 Internal Server Error (request={  }, response={  }, error=null, info={ "requestUrl": "http://localhost:7546", "responseBody": "{\"error\":{\"code\":-32603,\"message\":\"[Request ID: 74e49ce5-2d2e-4464-937a-07120f4dc5df] Unknown error invoking RPC\"},\"jsonrpc\":\"2.0\",\"id\":75}", "responseStatus": "500 Internal Server Error" }, code=SERVER_ERROR, version=6.13.5)
Error: server response 500 Internal Server Error (request={  }, response={  }, error=null, info={ "requestUrl": "http://localhost:7546", "responseBody": "{\"error\":{\"code\":-32603,\"message\":\"[Request ID: 74e49ce5-2d2e-4464-937a-07120f4dc5df] Unknown error invoking RPC\"},\"jsonrpc\":\"2.0\",\"id\":75}", "responseStatus": "500 Internal Server Error" }, code=SERVER_ERROR, version=6.13.5)
    at makeError (packages/server/node_modules/ethers/src.ts/utils/errors.ts:694:21)
    at assert (packages/server/node_modules/ethers/src.ts/utils/errors.ts:715:25)
    at FetchResponse.assertOk (packages/server/node_modules/ethers/src.ts/utils/fetch.ts:950:15)
    at JsonRpcProvider._send (packages/server/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:1245:18)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at /home/runner/_work/hedera-json-rpc-relay/hedera-json-rpc-relay/packages/server/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:537:40

Check warning on line 0 in "before each" hook for "from/to Addresses when transferring HTS tokens to the tokenAddress are in evm and long-zero format"

See this annotation in the file changed.

@github-actions github-actions / Test Results

RPC Server Acceptance Tests Acceptance tests @api-batch-2 RPC Server Acceptance Tests "before each" hook for "from/to Addresses…ore each" hook for "from/to Addresses when transferring HTS tokens to the tokenAddress are in evm and long-zero format") failed

test-results.3b47bafe1147764c4212869544570cc0.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 "before each" hook for "@release should execute "eth_getCode" for contract with id converted to evm_address"

See this annotation in the file changed.

@github-actions github-actions / Test Results

RPC Server Acceptance Tests Acceptance tests @api-batch-2 RPC Server Acceptance Tests "before each" hook for "@release should e…_address" ("before each" hook for "@release should execute "eth_getCode" for contract with id converted to evm_address") failed

test-results.a4d05492ecd0f0f658769a37a873e98b.xml [took 3m 59s]
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)