Fix BlobTx RPC #266

Merged
roysc merged 10 commits from roysc/fix-blob-tx into v5 2024-08-07 04:50:54 +00:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit 95beee2714 - Show all commits

View File

@ -660,6 +660,12 @@ func (pea *PublicEthAPI) localGetTransactionReceipt(ctx context.Context, hash co
if receipt.Logs == nil {
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 receipt.ContractAddress != (common.Address{}) {
fields["contractAddress"] = receipt.ContractAddress

View File

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