mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
internal/jsre: format tx.maxFeePerBlobGas to int
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
9e6e853fda
commit
eb52bca5c4
1 changed files with 5 additions and 2 deletions
|
|
@ -3734,7 +3734,7 @@ var inputCallFormatter = function (options){
|
|||
options.to = inputAddressFormatter(options.to);
|
||||
}
|
||||
|
||||
['maxFeePerGas', 'maxPriorityFeePerGas', 'gasPrice', 'gas', 'value', 'nonce'].filter(function (key) {
|
||||
['maxFeePerBlobGas', 'maxFeePerGas', 'maxPriorityFeePerGas', 'gasPrice', 'gas', 'value', 'nonce'].filter(function (key) {
|
||||
return options[key] !== undefined;
|
||||
}).forEach(function(key){
|
||||
options[key] = utils.fromDecimal(options[key]);
|
||||
|
|
@ -3759,7 +3759,7 @@ var inputTransactionFormatter = function (options){
|
|||
options.to = inputAddressFormatter(options.to);
|
||||
}
|
||||
|
||||
['maxFeePerGas', 'maxPriorityFeePerGas', 'gasPrice', 'gas', 'value', 'nonce'].filter(function (key) {
|
||||
['maxFeePerBlobGas', 'maxFeePerGas', 'maxPriorityFeePerGas', 'gasPrice', 'gas', 'value', 'nonce'].filter(function (key) {
|
||||
return options[key] !== undefined;
|
||||
}).forEach(function(key){
|
||||
options[key] = utils.fromDecimal(options[key]);
|
||||
|
|
@ -3789,6 +3789,9 @@ var outputTransactionFormatter = function (tx){
|
|||
if(tx.maxPriorityFeePerGas !== undefined) {
|
||||
tx.maxPriorityFeePerGas = utils.toBigNumber(tx.maxPriorityFeePerGas);
|
||||
}
|
||||
if(tx.maxFeePerBlobGas !== undefined) {
|
||||
tx.maxFeePerBlobGas = utils.toBigNumber(tx.maxFeePerBlobGas);
|
||||
}
|
||||
tx.value = utils.toBigNumber(tx.value);
|
||||
return tx;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue