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

Issue Bridging native SUI #20526

Closed
xhuppa opened this issue Dec 5, 2024 · 6 comments
Closed

Issue Bridging native SUI #20526

xhuppa opened this issue Dec 5, 2024 · 6 comments

Comments

@xhuppa
Copy link

xhuppa commented Dec 5, 2024

I'm running into issues when trying to bridge native SUI to any other chain, Im seeing a No valid gas coins found for the transaction. error. And I ONLY get this when bridging native SUI, not getting this for other assets like usdc or eth. Pasting the error trace below:

Transaction failed: Error: No valid gas coins found for the transaction.
    at _TransactionBlock.prepareGasPayment_fn (popup.js:723406:11)
    at async _TransactionBlock.prepare_fn (popup.js:723562:5)
    at async _TransactionBlock.build (popup.js:723308:5)
    at async WhSuiSigner.signAndSend (popup.js:591451:47)
    at async ssw (popup.js:791151:28)
    at async signSendWait (popup.js:791120:22)
    at async AutomaticTokenBridgeRoute.initiate (popup.js:793246:23)
    at async WormholeClient.executeSwap (popup.js:590902:25)
    at async sendTransactionWormhole (popup.js:569983:12)
    at async popup.js:570386:38

And when I try setting a gas owner, budget & payment, I get a MutableObjectUsedMoreThanOnce error,
Error checking transaction input objects: MutableObjectUsedMoreThanOnce { object_id: 0x7f7...ce1fc8 }

@MystenLabs MystenLabs deleted a comment Dec 5, 2024
@stefan-mysten
Copy link
Contributor

@xhuppa there is no official Sui support team, so do not attempt to engage with such actors as the one that I just deleted (in case you saw the previous comment).

I will pass this to the right team member and have a look at it asap. Thanks for the report!

@petvaizAkhtar
Copy link

Yes

@stefan-mysten
Copy link
Contributor

It does not sound like you are using the native bridge in Sui. Are you using Wormhole or another bridge?

@xhuppa
Copy link
Author

xhuppa commented Dec 12, 2024

It does not sound like you are using the native bridge in Sui. Are you using Wormhole or another bridge?

@stefan-mysten correct, I'm using wormhole

@stefan-mysten
Copy link
Contributor

@xhuppa thanks for confirming. We'd suggest to ask the Wormhole folks on how to deal with this error, that's probably the best place to get help!

@xhuppa
Copy link
Author

xhuppa commented Dec 16, 2024

@stefan-mysten Im not sure if this is a wormhole issue, regardless of the bridge I use, Im getting this error when trying to build the transaction using the mysten sdk.

I'm able to build any other tx, but when I build a native SUI tx I run into this issue. Is there a step I'm missing when constructing a native SUI swap/bridge? Heres some code for context:

   const { transaction } = txn as {
        transaction: SuiTransaction;
      };
      transaction.setSender(senderAddress);
      transaction.setGasBudget(SUI_DEFAULT_TX_BUDGET);

      const serializedTransaction = await transaction.build({
        client: this.client.provider,
      });

      const dryRun = await this.client.simTransaction({
        tx: Buffer.from(serializedTransaction).toString("base64"),
        senderAddress,
      });

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

No branches or pull requests

3 participants