Compare commits

...

2 Commits

Author SHA1 Message Date
ddd54ac39a run blob tx system tests
and skip system tests that use blob indexer
2024-07-27 14:27:07 +08:00
bbd477a3b5 fix RPC for blob tx receipt 2024-07-27 14:27:07 +08:00
3 changed files with 10 additions and 2 deletions

View File

@ -14,7 +14,7 @@ on:
env: env:
SO_VERSION: v1.1.0-36d4969-202407091537 SO_VERSION: v1.1.0-36d4969-202407091537
FIXTURENET_ETH_STACKS_REF: roysc/set-validator-creds FIXTURENET_ETH_STACKS_REF: roysc/set-validator-creds
SYSTEM_TESTS_REF: roysc/test-withdrawals SYSTEM_TESTS_REF: roysc/test-blob-tx
jobs: jobs:
test: test:
@ -105,7 +105,7 @@ jobs:
run: | run: |
pip install pytest pip install pytest
pip install -r requirements.txt pip install -r requirements.txt
pytest -vv pytest -vv -m "not blob_data"
- name: Run testnet stack without statediff - name: Run testnet stack without statediff
env: env:

View File

@ -660,6 +660,12 @@ func (pea *PublicEthAPI) localGetTransactionReceipt(ctx context.Context, hash co
if receipt.Logs == nil { if receipt.Logs == nil {
fields["logs"] = []*types.Log{} fields["logs"] = []*types.Log{}
} }
if tx.Type() == types.BlobTxType {
fields["blobGasUsed"] = hexutil.Uint64(receipt.BlobGasUsed)
fields["blobGasPrice"] = (*hexutil.Big)(receipt.BlobGasPrice)
}
// If the ContractAddress is 20 0x0 bytes, assume it is not a contract creation // If the ContractAddress is 20 0x0 bytes, assume it is not a contract creation
if receipt.ContractAddress != (common.Address{}) { if receipt.ContractAddress != (common.Address{}) {
fields["contractAddress"] = receipt.ContractAddress fields["contractAddress"] = receipt.ContractAddress

View File

@ -4,6 +4,8 @@ services:
ipld-eth-server: ipld-eth-server:
restart: unless-stopped restart: unless-stopped
image: cerc/ipld-eth-server:local image: cerc/ipld-eth-server:local
build:
context: ..
networks: networks:
- test_default - test_default
environment: environment: