fix: fixed eth_getCode to now use blockNumber when address is an HTS token #9317
4 fail, 33 pass in 5m 58s
Annotations
Check warning on line 0 in @release contract owner transfers tokens
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
could not coalesce error (error={ "code": -32011, "message": "[Request ID: 8b33188a-6c20-4dcb-a9f5-14c34b512c8f] Exceeded maximum mirror node pagination count: 25" }, payload={ "id": 213, "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: 8b33188a-6c20-4dcb-a9f5-14c34b512c8f] Exceeded maximum mirror node pagination count: 25" }, payload={ "id": 213, "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 emits a transfer event
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
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
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": "0xa9059cbb000000000000000000000000690458e7349a805f50d0c6463b2be714a80eb1a10000000000000000000000000000000000000000000000000000000000002710", "from": "0xdA9B5eB98eb09d6904d2B9F59602326B2226Fa94", "to": "0x0000000000000000000000000000000000000419" }, 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": "0xa9059cbb000000000000000000000000690458e7349a805f50d0c6463b2be714a80eb1a10000000000000000000000000000000000000000000000000000000000002710", "from": "0xdA9B5eB98eb09d6904d2B9F59602326B2226Fa94", "to": "0x0000000000000000000000000000000000000419" }, 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: reducing balance for "reverts"
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)