Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

trigger CI

004b072
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

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

trigger CI
004b072
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results failed Jan 29, 2025 in 0s

6 fail, 4 skipped, 605 pass in 38m 53s

 20 files   -  2  292 suites   - 62   38m 53s ⏱️ - 10m 29s
615 tests + 2  605 ✅ + 1  4 💤 ±0  6 ❌ +1 
695 runs   - 81  685 ✅  - 81  4 💤 ±0  6 ❌ ±0 

Results for commit 004b072. ± Comparison against earlier commit ec01e99.

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 2 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.5ee7800fa6b48270b05df16c65ba2a77.xml [took 0s]
Raw output
nonce has already been used (transaction="0x02f8af82012a048086014a9e98780082a45c94000000000000000000000000000000000000040d80b844a9059cbb000000000000000000000000c230215ae18b47489aa986d1759750170fad5fa10000000000000000000000000000000000000000000000000000000000002710c001a015635b56132fae5d30b7361d34b20e42bcfb9fc773ad6d0b5d980d16bac576faa051ad88289b84fe24a10cc69c83b5bc98ed453aceaeac0a5826e4ae5a8197024b", info={ "error": { "code": 32001, "message": "[Request ID: 3ffd1f3e-06fe-4a76-accc-08f8bc6c8a5f] Nonce too low. Provided nonce: 4, current nonce: 5" } }, code=NONCE_EXPIRED, version=6.13.5)
Error: nonce has already been used (transaction="0x02f8af82012a048086014a9e98780082a45c94000000000000000000000000000000000000040d80b844a9059cbb000000000000000000000000c230215ae18b47489aa986d1759750170fad5fa10000000000000000000000000000000000000000000000000000000000002710c001a015635b56132fae5d30b7361d34b20e42bcfb9fc773ad6d0b5d980d16bac576faa051ad88289b84fe24a10cc69c83b5bc98ed453aceaeac0a5826e4ae5a8197024b", info={ "error": { "code": 32001, "message": "[Request ID: 3ffd1f3e-06fe-4a76-accc-08f8bc6c8a5f] Nonce too low. Provided nonce: 4, current nonce: 5" } }, 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)

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 2 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.5ee7800fa6b48270b05df16c65ba2a77.xml [took 0s]
Raw output
Cannot read properties of undefined (reading 'wait')
TypeError: Cannot read properties of undefined (reading 'wait')
    at Context.<anonymous> (packages/server/tests/acceptance/erc20.spec.ts:206:51)
    at Generator.next (<anonymous>)
    at /home/runner/_work/hedera-json-rpc-relay/hedera-json-rpc-relay/packages/server/tests/acceptance/erc20.spec.ts:50:71
    at new Promise (<anonymous>)
    at __awaiter (packages/server/tests/acceptance/erc20.spec.ts:46:12)
    at Context.<anonymous> (packages/server/tests/acceptance/erc20.spec.ts:214:52)
    at processImmediate (node:internal/timers:483:21)

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 2 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.5ee7800fa6b48270b05df16c65ba2a77.xml [took 0s]
Raw output
execution reverted (no data present; likely require(false) occurred (action="estimateGas", data="0x", reason="require(false)", transaction={ "data": "0xa9059cbb00000000000000000000000062e543f9230b8df3b0371ba9ff78ca65716077430000000000000000000000000000000000000000000000000000000000002710", "from": "0xC230215Ae18b47489AA986D1759750170FaD5FA1", "to": "0x000000000000000000000000000000000000040d" }, 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": "0xa9059cbb00000000000000000000000062e543f9230b8df3b0371ba9ff78ca65716077430000000000000000000000000000000000000000000000000000000000002710", "from": "0xC230215Ae18b47489AA986D1759750170FaD5FA1", "to": "0x000000000000000000000000000000000000040d" }, 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 for "Subscribes for debug"

See this annotation in the file changed.

@github-actions github-actions / Test Results

RPC Server Acceptance Tests Acceptance tests @web-socket-batch-3 eth_subscribe Subscribes to log events "before all" hook for "Subscribes for debug" ("before all" hook for "Subscribes for debug") failed

test-results.49423030072caf1e832943f4f99b518c.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 each" hook for "@release captures transfer events"

See this annotation in the file changed.

@github-actions github-actions / Test Results

RPC Server Acceptance Tests Acceptance tests @web-socket-batch-3 eth_subscribe "before each" hook for "@release captures transfer events" ("before each" hook for "@release captures transfer events") failed

test-results.49423030072caf1e832943f4f99b518c.xml [took 1s]
Raw output
expected 2 to equal 1
AssertionError: expected 2 to equal 1
    at Suite.<anonymous> (packages/ws-server/tests/acceptance/subscribe.spec.ts:122:48)
    at Generator.next (<anonymous>)
    at fulfilled (packages/ws-server/tests/acceptance/subscribe.spec.ts:47:58)

      + expected - actual

      -2
      +1

Check warning on line 0 in "after each" hook for "@release captures transfer events"

See this annotation in the file changed.

@github-actions github-actions / Test Results

RPC Server Acceptance Tests Acceptance tests @web-socket-batch-3 eth_subscribe "after each" hook for "@release captures transfer events" ("after each" hook for "@release captures transfer events") failed

test-results.49423030072caf1e832943f4f99b518c.xml [took 1s]
Raw output
expected 1 to equal +0
AssertionError: expected 1 to equal +0
    at Suite.<anonymous> (packages/ws-server/tests/acceptance/subscribe.spec.ts:130:48)
    at Generator.next (<anonymous>)
    at fulfilled (packages/ws-server/tests/acceptance/subscribe.spec.ts:47:58)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at processTimers (node:internal/timers:516:9)

      + expected - actual

      -1
      +0