safe-core-sdk icon indicating copy to clipboard operation
safe-core-sdk copied to clipboard

Cannot execute safe transaction, and failed transaction always be pending in queue page

Open lbhsot opened this issue 2 years ago • 0 comments

Description

I'm following this guide to create custom safe transaction.

Safe transactions created by the code can not be executed.

Then if I execute the transaction in queue page, it'll failed in a few minutes but in queue page the transaction will always pending.

Environment

  • Browser: Chrome
  • Wallet: MetaMask
  • Chain: Rinkeby

Steps to reproduce

  1. Code below to create safe transaction and propose to https://safe-transaction.rinkeby.gnosis.io/
const transaction = {
  to,
  value,
  data,
  operation: 0,
};
const safeTransaction = await this.sdk!.createTransaction(transaction);
await this.sdk!.signTransaction(safeTransaction);
const safeTxHash = await this.sdk!.getTransactionHash(safeTransaction);
await this.service!.proposeTransaction({
  safeAddress: this.sdk!.getAddress(),
  safeTransaction,
  safeTxHash,
  senderAddress: '0xxxxxxx',
  origin: window.location.origin,
});
  1. Go to safe queue page, press execute, in execute modal, it'll show me the transaction will be failed.
  2. Confirm execute, change the gas fee

Expected result

  1. I can execute the transaction successfully.
  2. If failed, pending transaction will back to waiting status

Obtained result

  1. Execute the transaction failed.
  2. Failed transaction will always pending.

Transaction detail links

Failed with code GS010

Failed with code GS013

Success when I create transaction in gnosis safe app

lbhsot avatar Feb 24 '22 02:02 lbhsot