From 62dc37354d5578edd47ec783773c2e9c43aee9e1 Mon Sep 17 00:00:00 2001 From: Naoya Okanami Date: Wed, 29 Jul 2020 18:25:54 +0900 Subject: [PATCH] Rename tx.gas -> tx.gasLimit --- EIPS/eip-1559.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EIPS/eip-1559.md b/EIPS/eip-1559.md index f2cf64e6022e9e..f9d8f5f6e7c705 100644 --- a/EIPS/eip-1559.md +++ b/EIPS/eip-1559.md @@ -93,7 +93,7 @@ For the gas price: * During transaction execution, for EIP1559 transactions we calculate the cost to the `tx.origin` and the gain to the `block.coinbase` as follows: * Set `GASPRICE = min(BASEFEE + tx.GasPremium, tx.fee_cap)` * Let `GASUSED` be the gas used during the transaction execution/state transition - * The `tx.origin` initially pays `GASPRICE * tx.gas`, and gets refunded `GASPRICE * (tx.gas - GASUSED)` + * The `tx.origin` initially pays `GASPRICE * tx.gasLimit`, and gets refunded `GASPRICE * (tx.gasLimit - GASUSED)` * The `block.coinbase` gains `(GASPRICE - BASEFEE) * GASUSED`. * If `GASPRICE < BASEFEE` (due to the `FEECAP`), this means that the `block.coinbase` _loses_ funds from this operation; in this case, we check that the post-balance is non-negative and throw an exception if it is negative.