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

Make BaseInvocationScope.call() possible to dont wait for transaction result #2492

Open
guimroque opened this issue Jun 10, 2024 · 1 comment
Assignees
Labels
feat Issue is a feature p0 High priority
Milestone

Comments

@guimroque
Copy link

Motivation

as we are a multi-sig wallet, the contract call will not be sent instantly. people need to sign it first. for that we need the fuel sdk to add support for contract call allow to don't wait for execution

this is a huge UX blocker in our flow, making the DAPP get stuck waiting for the transaction to complete because we can't opt out of waiting for execution

Usage example

No response

Possible implementations

No response

@arboleya arboleya added feat Issue is a feature triage Issue needs to be triaged labels Jun 10, 2024
@Torres-ssf Torres-ssf self-assigned this Jun 12, 2024
@Torres-ssf Torres-ssf added the p0 High priority label Jun 12, 2024
@Torres-ssf
Copy link
Contributor

Hey @guimroque. Indeed when calling BaseInvocationScope .call it is not possible to not wait for the TX execution.

However, there is a way around this. The following example executes a contract function increment_counter.

const transactionRequest = await contract.functions
          .increment_counter(1)
          .txParams({ gasLimit: 200_000, maxFee: 150_000 })
          .fundWithRequiredCoins()
          
const transactionResponse = await wallet.sendTransaction(transactionRequest, { awaitExecution: false })

I wonder if this approach solves your problem and unblocks you.

@Torres-ssf Torres-ssf removed the triage Issue needs to be triaged label Jun 12, 2024
@Torres-ssf Torres-ssf added this to the 0.x mainnet milestone Jun 12, 2024
@Torres-ssf Torres-ssf added awaiting We need further input from the author and removed awaiting We need further input from the author labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Issue is a feature p0 High priority
Projects
None yet
Development

No branches or pull requests

3 participants