mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Ensure that swap approve tx and swap tx always have the same gas price (#10501)
This commit is contained in:
parent
75a81c605a
commit
9c4af85664
@ -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 };
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user