1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

Ensure that swap approve tx and swap tx always have the same gas price (#10501)

This commit is contained in:
Dan J Miller 2021-02-23 13:21:43 -03:30 committed by GitHub
parent 75a81c605a
commit 9c4af85664
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,7 +288,7 @@ export const getApproveTxParams = (state) => {
}
const data = getSwapsState(state)?.customApproveTxData || approvalNeeded.data;
const gasPrice = getCustomSwapsGasPrice(state) || approvalNeeded.gasPrice;
const gasPrice = getUsedSwapsGasPrice(state);
return { ...approvalNeeded, gasPrice, data };
};