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

Can't send funds to multisig - Out of gas #12642

Closed
hesterbruikman opened this issue Sep 23, 2021 · 3 comments · Fixed by #12648
Closed

Can't send funds to multisig - Out of gas #12642

hesterbruikman opened this issue Sep 23, 2021 · 3 comments · Fixed by #12648
Assignees

Comments

@hesterbruikman
Copy link
Contributor

Bug Report

Problem

When sending funds to a Gnosis multisig, the tx failed 4 times. Sending funds to 2 different addresses, both Gnosis multisig contract addresses. Error on Etherscan for transactions send using Status Wallet says Warning! Error encountered during contract execution [Out of gas]

I was able to:

  • Send funds from the same account as used in Status using https://www.myetherwallet.com/wallet/send-tx in combination with Frame to sign.
  • Send funds from a different account through MetaMask
  • Sign contract interaction to exchange on Uniswap using Status wallet

Etherscan shows succesful transaction signed with Frame to use a bit more gas, but not much:

  • Frame: 0.001414693564
  • Status: 0.001054394619 (highest amount of gas out of 3 failed transactions)

Expected behavior

Wallet accurately estimates fees required to send funds to contract

Actual behavior

Wallet does not accurately estimate fees required to send funds to contract in case of contract being a Gnosis multisig
(Don't have an address to verify if the issue occurs only for Gnosis multisigs or also for other multisign contract addresses)

Reproduction

  1. Open Status
  2. Open Wallet
  3. Send
  4. Enter multisig address as recipient (ping @hesterbruikman for address if needed)
  5. Receive warning about interacting with contract > Tap OK
  6. Sign and send tx > View progress on Etherscan

Additional Information

  • Status version: Release 1.16
  • Operating System: Android

Frame 1

@carlfairclough
Copy link

I wonder why this is using so much gas? 21000 should be sufficient for sends.

@flexsurfer
Copy link
Member

flexsurfer commented Sep 23, 2021

I wonder why this is using so much gas? 21000 should be sufficient for sends.

yes, its an answer to why tx is failing, because 21000 is for sending ETH to non-contract addresses, so we have a condition in status-react, if tx has only ETH and no data (for a contract) we don't estimate gas, and set it to 21000, but in some cases, ETH may be sent without data to contract, and in that case, contract could do additional calculations and use more gas

related issue #12583

@flexsurfer
Copy link
Member

i don't remember why we did this, at some point ETH estimation was wrong, and we hardcoded 21000, but its pretty easy to fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants