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 Jan 31, 2025 in 0s

7 fail, 2 skipped, 65 pass in 9m 16s

  3 files   -   5   27 suites   - 100   9m 16s ⏱️ - 24m 59s
 74 tests  - 152   65 ✅  - 159  2 💤 +2   7 ❌ +5 
133 runs   - 265  121 ✅  - 275  2 💤 +2  10 ❌ +8 

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

Annotations

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.7dfa0f02061fc0c4bd415b53340a36eb.xml [took 0s]
test-results.c90de117e047140217a7acd3cb3fee8a.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.7dfa0f02061fc0c4bd415b53340a36eb.xml [took 0s]
test-results.c90de117e047140217a7acd3cb3fee8a.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.7dfa0f02061fc0c4bd415b53340a36eb.xml [took 0s]
test-results.c90de117e047140217a7acd3cb3fee8a.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.c90de117e047140217a7acd3cb3fee8a.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: 31dd4e80-3e14-4c5d-ba50-28da231f3deb] Unknown error invoking RPC\"},\"jsonrpc\":\"2.0\",\"id\":77}", "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: 31dd4e80-3e14-4c5d-ba50-28da231f3deb] Unknown error invoking RPC\"},\"jsonrpc\":\"2.0\",\"id\":77}", "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 "@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.c90de117e047140217a7acd3cb3fee8a.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 "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.7dfa0f02061fc0c4bd415b53340a36eb.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.f9ee2de9d3c67ebf7c3000cc566ef8e6.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)