Skip to content

Commit 1b5cf90

Browse files
MariusVanDerWijdenlightclient
authored andcommitted
eth, internal: datagasused -> blobgasused
1 parent d4c851f commit 1b5cf90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/ethapi/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,7 @@ type RPCTransaction struct {
13801380
GasPrice *hexutil.Big `json:"gasPrice"`
13811381
GasFeeCap *hexutil.Big `json:"maxFeePerGas,omitempty"`
13821382
GasTipCap *hexutil.Big `json:"maxPriorityFeePerGas,omitempty"`
1383-
MaxFeePerDataGas *hexutil.Big `json:"maxFeePerDataGas,omitempty"`
1383+
MaxFeePerBlobGas *hexutil.Big `json:"maxFeePerBlobGas,omitempty"`
13841384
Hash common.Hash `json:"hash"`
13851385
Input hexutil.Bytes `json:"input"`
13861386
Nonce hexutil.Uint64 `json:"nonce"`
@@ -1467,7 +1467,7 @@ func newRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber
14671467
} else {
14681468
result.GasPrice = (*hexutil.Big)(tx.GasFeeCap())
14691469
}
1470-
result.MaxFeePerDataGas = (*hexutil.Big)(tx.BlobGasFeeCap())
1470+
result.MaxFeePerBlobGas = (*hexutil.Big)(tx.BlobGasFeeCap())
14711471
result.BlobVersionedHashes = tx.BlobHashes()
14721472
}
14731473
return result

0 commit comments

Comments
 (0)