safe-core-sdk
safe-core-sdk copied to clipboard
Cannot execute safe transaction, and failed transaction always be pending in queue page
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
- 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,
});
- Go to safe queue page, press execute, in execute modal, it'll show me the transaction will be failed.
- Confirm execute, change the gas fee
Expected result
- I can execute the transaction successfully.
- If failed, pending transaction will back to waiting status
Obtained result
- Execute the transaction failed.
- 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