Skip to content

Commit

Permalink
Fix send deeplinks
Browse files Browse the repository at this point in the history
  • Loading branch information
OGPoyraz committed Jan 13, 2025
1 parent 99a2404 commit d66faf2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/components/Views/confirmations/Send/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ class Send extends PureComponent {
* Resets gas and gasPrice of transaction
*/
async reset() {
const { transaction } = this.props;
const { gas, gasPrice } = await estimateGas(transaction);
const { networkClientId, transaction } = this.props;
const { gas, gasPrice } = await estimateGas(transaction, networkClientId);
this.props.setTransactionObject({
gas: hexToBN(gas),
gasPrice: hexToBN(gasPrice),
Expand Down Expand Up @@ -320,8 +320,6 @@ class Send extends PureComponent {
handleNewTxMeta = async ({
target_address,
action,
chain_id = null,
function_name = null, // eslint-disable-line no-unused-vars
parameters = null,
}) => {
const { addressBook, chainId, internalAccounts, selectedAddress } =
Expand Down Expand Up @@ -408,7 +406,10 @@ class Send extends PureComponent {

// if gas and gasPrice is not defined in the deeplink, we should define them
if (!gas && !gasPrice) {
const { gas, gasPrice } = await estimateGas(this.props.transaction);
const { gas, gasPrice } = await estimateGas(
this.props.transaction,
this.props.networkClientId,
);
newTxMeta = {
...newTxMeta,
gas,
Expand Down

0 comments on commit d66faf2

Please sign in to comment.