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

13 fail, 4 skipped, 606 pass in 1h 1m 2s

 24 files  + 16  367 suites  +240   1h 1m 2s ⏱️ + 26m 47s
623 tests +397  606 ✅ +382  4 💤 +4  13 ❌ +11 
886 runs  +488  864 ✅ +468  6 💤 +6  16 ❌ +14 

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

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

2 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.9439760b40d85f71e2eab6d48d85df4c.xml [took 5s]
test-results.b4c012ea16bca9e56477f21590924551.xml [took 0s]
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

2 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.9439760b40d85f71e2eab6d48d85df4c.xml [took 4m 0s]
test-results.b4c012ea16bca9e56477f21590924551.xml [took 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

2 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.9439760b40d85f71e2eab6d48d85df4c.xml [took 0s]
test-results.b4c012ea16bca9e56477f21590924551.xml [took 0s]
Raw output
execution reverted (no data present; likely require(false) occurred (action="estimateGas", data="0x", reason="require(false)", transaction={ "data": "0xa9059cbb0000000000000000000000001d6a4ead6a74e414006b9c1a901792f3b34053dc0000000000000000000000000000000000000000000000000000000000002710", "from": "0x079E14c3Bb52eE1865C1c34343173Bb632DE0d5f", "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": "0xa9059cbb0000000000000000000000001d6a4ead6a74e414006b9c1a901792f3b34053dc0000000000000000000000000000000000000000000000000000000000002710", "from": "0x079E14c3Bb52eE1865C1c34343173Bb632DE0d5f", "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 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.4cab04fb9c4d3dd886f26cdf58bd2d5f.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

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) failed

test-results.6b410d787fdaaa26314c09fd423fc319.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

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) failed

test-results.6b410d787fdaaa26314c09fd423fc319.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

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) failed

test-results.6b410d787fdaaa26314c09fd423fc319.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 should execute "eth_getStorageAt" request to get current state changes without passing block

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_getStorageAt …te changes without passing block (should execute "eth_getStorageAt" request to get current state changes without passing block)

test-results.6b410d787fdaaa26314c09fd423fc319.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 "should execute "eth_getStorageAt" request to get current state changes with passing specific block"

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 "should execute "e…ore each" hook for "should execute "eth_getStorageAt" request to get current state changes with passing specific block") failed

test-results.6b410d787fdaaa26314c09fd423fc319.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 @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 for "should execute "eth_getCode" for hts token"

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 eth_getCode "before all" hook for "should execute "eth_getCode" for hts token" ("before all" hook for "should execute "eth_getCode" for hts token") failed

test-results.d19a4b4e1555f0c4572d17f832cde5db.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: reducing balance 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 …e enough balance "before each" hook: reducing balance for "reverts" ("before each" hook: reducing balance for "reverts") failed

test-results.4634c7104e324855c70b8db53954b0e1.xml [took 0s]
Raw output
nonce has already been used (transaction="0x02f8b482012a0885a54f4c3c0085a54f4c3c008316e36094000000000000000000000000000000000000040d80b844a9059cbb0000000000000000000000005f471c23dcc14db54ae3095887efcf6b0342abd00000000000000000000000000000000000000000000000000000000000000002c001a017fde6f2af49fbe4d34d77120291a838eb9e53ffa09b94b4605f4c708bf08a17a006d36c5600f5d30beb1262e6816469b89549abbbd1c1f90e78984449472b2103", info={ "error": { "code": 32001, "message": "[Request ID: 5045a374-3128-4621-a255-ffdbbfe5fcfc] Nonce too low. Provided nonce: 8, current nonce: 9" } }, code=NONCE_EXPIRED, version=6.13.5)
Error: nonce has already been used (transaction="0x02f8b482012a0885a54f4c3c0085a54f4c3c008316e36094000000000000000000000000000000000000040d80b844a9059cbb0000000000000000000000005f471c23dcc14db54ae3095887efcf6b0342abd00000000000000000000000000000000000000000000000000000000000000002c001a017fde6f2af49fbe4d34d77120291a838eb9e53ffa09b94b4605f4c708bf08a17a006d36c5600f5d30beb1262e6816469b89549abbbd1c1f90e78984449472b2103", info={ "error": { "code": 32001, "message": "[Request ID: 5045a374-3128-4621-a255-ffdbbfe5fcfc] Nonce too low. Provided nonce: 8, current nonce: 9" } }, code=NONCE_EXPIRED, 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:1031:33)
    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)