fix: added null check for nullable values in formatContractResult() (… #8679
GitHub Actions / Test Results
failed
Nov 5, 2024 in 0s
1 fail, 74 pass in 3m 46s
Annotations
Check warning on line 0 in should not cache "pending" block in "eth_getBlockByNumber"
github-actions / Test Results
1 out of 2 runs failed: RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Accept…calls should not cache "pending" block in "eth_getBlockByNumber" (should not cache "pending" block in "eth_getBlockByNumber" )
test-results.f753c8fa064f8cdf8f88e016eac2f865.xml [took 1s]
Raw output
expected { timestamp: '0x67299af8', …(22) } to not deeply equal { timestamp: '0x67299af8', …(22) }
AssertionError: expected { timestamp: '0x67299af8', …(22) } to not deeply equal { timestamp: '0x67299af8', …(22) }
at Context.<anonymous> (packages/server/tests/acceptance/rpc_batch1.spec.ts:624:41)
at Generator.next (<anonymous>)
at fulfilled (packages/server/tests/acceptance/rpc_batch1.spec.ts:24:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
+ expected - actual
Check notice on line 0 in .github
github-actions / Test Results
75 tests found
There are 75 tests, see "Raw output" for the full list of tests.
Raw output
@release fail "eth_getTransactionReceipt" on precheck with wrong nonce error when sending a tx with a higher nonce ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls Prechecks @release fail "eth_getTransactionReceipt" on precheck with wrong nonce error when sending a tx with a higher nonce
@release fail "eth_getTransactionReceipt" on precheck with wrong nonce error when sending a tx with the same nonce twice ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls Prechecks @release fail "eth_getTransactionReceipt" on precheck with wrong nonce error when sending a tx with the same nonce twice
@release fail "eth_getTransactionReceipt" on submitting with wrong nonce error when sending a tx with the same nonce twice ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls Prechecks @release fail "eth_getTransactionReceipt" on submitting with wrong nonce error when sending a tx with the same nonce twice
@release should deploy a contract ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs @release should deploy a contract
@release should execute "eth_getBlockByHash", hydrated transactions = true ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls @release should execute "eth_getBlockByHash", hydrated transactions = true
@release should execute "eth_getBlockByNumber", hydrated transactions = true ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls @release should execute "eth_getBlockByNumber", hydrated transactions = true
@release should execute "eth_getBlockTransactionCountByHash" ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls @release should execute "eth_getBlockTransactionCountByHash"
@release should execute "eth_getBlockTransactionCountByNumber" ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls @release should execute "eth_getBlockTransactionCountByNumber"
@release should execute "eth_getTransactionByBlockHashAndIndex" ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls @release should execute "eth_getTransactionByBlockHashAndIndex"
@release should execute "eth_getTransactionByBlockNumberAndIndex" ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls @release should execute "eth_getTransactionByBlockNumberAndIndex"
@release should execute "eth_getTransactionByHash" for existing transaction ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls @release should execute "eth_getTransactionByHash" for existing transaction
@release should fail to execute "eth_getTransactionReceipt" for hash of London transaction ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls @release should fail to execute "eth_getTransactionReceipt" for hash of London transaction
@release should return the right "effectiveGasPrice" for SYNTHETIC Contract Call transaction ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls @release should return the right "effectiveGasPrice" for SYNTHETIC Contract Call transaction
@release should return the right "effectiveGasPrice" for SYNTHETIC HTS transaction ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls @release should return the right "effectiveGasPrice" for SYNTHETIC HTS transaction
@release-light, @release should execute "eth_getTransactionReceipt" for hash of 2930 transaction ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls @release-light, @release should execute "eth_getTransactionReceipt" for hash of 2930 transaction
@release-light, @release should execute "eth_getTransactionReceipt" for hash of London transaction ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls @release-light, @release should execute "eth_getTransactionReceipt" for hash of London transaction
@release-light, @release should execute "eth_getTransactionReceipt" for hash of legacy transaction ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls @release-light, @release should execute "eth_getTransactionReceipt" for hash of legacy transaction
@release-light, @release should execute "eth_sendRawTransaction" for legacy EIP 155 transactions ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls @release-light, @release should execute "eth_sendRawTransaction" for legacy EIP 155 transactions
should be able to return more than 2 logs with limit of 2 logs per request ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs should be able to return more than 2 logs with limit of 2 logs per request
should be able to use `address` param with a large block range ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs should be able to use `address` param with a large block range
should be able to use `address` param with multiple addresses ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs should be able to use `address` param with multiple addresses
should be able to use `address` param ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs should be able to use `address` param
should be able to use `blockHash` param ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs should be able to use `blockHash` param
should be able to use `fromBlock` param ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs should be able to use `fromBlock` param
should be able to use `topics` param ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs should be able to use `topics` param
should be able to use range of `fromBlock` and `toBlock` params ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs should be able to use range of `fromBlock` and `toBlock` params
should delete the file created while execute "eth_sendRawTransaction" to deploy a large contract ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should delete the file created while execute "eth_sendRawTransaction" to deploy a large contract
should execute "eth_getBlockByHash" for non-existing block hash and hydrated transactions = false ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should execute "eth_getBlockByHash" for non-existing block hash and hydrated transactions = false
should execute "eth_getBlockByHash" for non-existing block hash and hydrated transactions = true ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should execute "eth_getBlockByHash" for non-existing block hash and hydrated transactions = true
should execute "eth_getBlockByHash", hydrated transactions = false ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should execute "eth_getBlockByHash", hydrated transactions = false
should execute "eth_getBlockByNumber" for non existing block number and hydrated transactions = false ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should execute "eth_getBlockByNumber" for non existing block number and hydrated transactions = false
should execute "eth_getBlockByNumber" for non existing block number and hydrated transactions = true ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should execute "eth_getBlockByNumber" for non existing block number and hydrated transactions = true
should execute "eth_getBlockByNumber", hydrated transactions = false ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should execute "eth_getBlockByNumber", hydrated transactions = false
should execute "eth_getBlockTransactionCountByHash" for non-existing block hash ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should execute "eth_getBlockTransactionCountByHash" for non-existing block hash
should execute "eth_getBlockTransactionCountByNumber" for non-existing block number ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should execute "eth_getBlockTransactionCountByNumber" for non-existing block number
should execute "eth_getBlockTransactionCountByNumber" ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should execute "eth_getBlockTransactionCountByNumber"
should execute "eth_getTransactionByBlockHashAndIndex" for invalid block hash ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_getTransactionByBlockHashAndIndex" for invalid block hash
should execute "eth_getTransactionByBlockHashAndIndex" for invalid index ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_getTransactionByBlockHashAndIndex" for invalid index
should execute "eth_getTransactionByBlockNumberAndIndex" for invalid index ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_getTransactionByBlockNumberAndIndex" for invalid index
should execute "eth_getTransactionByBlockNumberAndIndex" for non-exising block number ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_getTransactionByBlockNumberAndIndex" for non-exising block number
should execute "eth_getTransactionByHash" for non-existing transaction and return null ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_getTransactionByHash" for non-existing transaction and return null
should execute "eth_getTransactionReceipt" for non-existing hash ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_getTransactionReceipt" for non-existing hash
should execute "eth_sendRawTransaction" and deploy a contract with any arbitrary calldata size ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_sendRawTransaction" and deploy a contract with any arbitrary calldata size
should execute "eth_sendRawTransaction" and deploy a contract with more than 2 HBAR transaction fee and less than max transaction fee ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_sendRawTransaction" and deploy a contract with more than 2 HBAR transaction fee and less than max transaction fee
should execute "eth_sendRawTransaction" and deploy a contract with more than max transaction fee ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_sendRawTransaction" and deploy a contract with more than max transaction fee
should execute "eth_sendRawTransaction" and deploy a large contract ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_sendRawTransaction" and deploy a large contract
should execute "eth_sendRawTransaction" and fail when deploying too large contract ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_sendRawTransaction" and fail when deploying too large contract
should execute "eth_sendRawTransaction" for London transactions ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_sendRawTransaction" for London transactions
should execute "eth_sendRawTransaction" for deterministic deployment transaction ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_sendRawTransaction" for deterministic deployment transaction
should execute "eth_sendRawTransaction" for legacy transactions (with no chainId i.e. chainId=0x0) ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_sendRawTransaction" for legacy transactions (with no chainId i.e. chainId=0x0)
should execute "eth_sendRawTransaction" of type 1 and deploy a real contract ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_sendRawTransaction" of type 1 and deploy a real contract
should execute "eth_sendRawTransaction" of type 2 and deploy a real contract ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should execute "eth_sendRawTransaction" of type 2 and deploy a real contract
should fail "eth_sendRawTransaction" for EIP155 transaction with a too high gasLimit ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls Prechecks should fail "eth_sendRawTransaction" for EIP155 transaction with a too high gasLimit
should fail "eth_sendRawTransaction" for EIP155 transaction with not enough gas ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls Prechecks should fail "eth_sendRawTransaction" for EIP155 transaction with not enough gas
should fail "eth_sendRawTransaction" for Legacy 2930 transactions (with gas price too low) ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should fail "eth_sendRawTransaction" for Legacy 2930 transactions (with gas price too low)
should fail "eth_sendRawTransaction" for Legacy 2930 transactions (with insufficient balance) ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should fail "eth_sendRawTransaction" for Legacy 2930 transactions (with insufficient balance)
should fail "eth_sendRawTransaction" for Legacy transactions (with gas price too low) ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should fail "eth_sendRawTransaction" for Legacy transactions (with gas price too low)
should fail "eth_sendRawTransaction" for London transaction with a too high gasLimit ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls Prechecks should fail "eth_sendRawTransaction" for London transaction with a too high gasLimit
should fail "eth_sendRawTransaction" for London transaction with not enough gas ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls Prechecks should fail "eth_sendRawTransaction" for London transaction with not enough gas
should fail "eth_sendRawTransaction" for London transactions (with gas price too low) ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should fail "eth_sendRawTransaction" for London transactions (with gas price too low)
should fail "eth_sendRawTransaction" for London transactions (with insufficient balance) ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should fail "eth_sendRawTransaction" for London transactions (with insufficient balance)
should fail "eth_sendRawTransaction" for legacy EIP 155 transactions (with gas price too low) ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls Prechecks should fail "eth_sendRawTransaction" for legacy EIP 155 transactions (with gas price too low)
should fail "eth_sendRawTransaction" for legacy EIP 155 transactions (with insufficient balance) ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should fail "eth_sendRawTransaction" for legacy EIP 155 transactions (with insufficient balance)
should fail "eth_sendRawTransaction" for transaction with incorrect chain_id ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls Prechecks should fail "eth_sendRawTransaction" for transaction with incorrect chain_id
should fail "eth_sendRawTransaction" for transaction with incorrect chain_id ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should fail "eth_sendRawTransaction" for transaction with incorrect chain_id
should not be able to use `toBlock` without `fromBlock` param if `toBlock` is not latest ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs should not be able to use `toBlock` without `fromBlock` param if `toBlock` is not latest
should not cache "finalized" block in "eth_getBlockByNumber" ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should not cache "finalized" block in "eth_getBlockByNumber"
should not cache "latest" block in "eth_getBlockByNumber" ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should not cache "latest" block in "eth_getBlockByNumber"
should not cache "pending" block in "eth_getBlockByNumber" ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should not cache "pending" block in "eth_getBlockByNumber"
should not cache "safe" block in "eth_getBlockByNumber" ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Block related RPC calls should not cache "safe" block in "eth_getBlockByNumber"
should not fail "eth_sendRawTransactxion" for Legacy 2930 transactions ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should not fail "eth_sendRawTransactxion" for Legacy 2930 transactions
should return empty logs if address = ZeroAddress ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs should return empty logs if address = ZeroAddress
should return empty result for non-existing `blockHash` ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs should return empty result for non-existing `blockHash`
should return only logs of non-zero addresses ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests eth_getLogs should return only logs of non-zero addresses
should return transaction result with no chainId field for legacy EIP155 transactions (with no chainId i.e. chainId=0x0) ‑ RPC Server Acceptance Tests Acceptance tests @api-batch-1 RPC Server Acceptance Tests RPC Server Acceptance Tests Transaction related RPC Calls should return transaction result with no chainId field for legacy EIP155 transactions (with no chainId i.e. chainId=0x0)
Loading