Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix send flow deeplinks #12965

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading