Add gasPrice to Polygon feeData for type 0 and type 1 legacy transactions (#4315).
This commit is contained in:
parent
b4fb1a166d
commit
0df3ab9313
@ -329,9 +329,13 @@ function getGasStationPlugin(url: string) {
|
||||
|
||||
let response;
|
||||
try {
|
||||
response = await request.send();
|
||||
const [ _response, _feeData ] = await Promise.all([
|
||||
request.send(), fetchFeeData()
|
||||
]);
|
||||
response = _response;
|
||||
const payload = response.bodyJson.standard;
|
||||
const feeData = {
|
||||
gasPrice: _feeData.gasPrice,
|
||||
maxFeePerGas: parseUnits(payload.maxFee, 9),
|
||||
maxPriorityFeePerGas: parseUnits(payload.maxPriorityFee, 9),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user