Add gasPrice to Polygon feeData for type 0 and type 1 legacy transactions (#4315).

This commit is contained in:
Richard Moore 2023-08-14 19:34:01 -04:00
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),
};