-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Comments
@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! |
Yes |
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 |
@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! |
@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:
|
@xhuppa did you manage to figure it out? From the first error, it might be that you need first to split the SUI coin into two, and use one to pay gas. Usually, this is done by the SDK, but maybe it's worth trying manually? |
@stefan-mysten Still no luck. Anytime I tried splitting into two it would throw an error for having duplicate input objects:
|
Thanks @xhuppa. Can you share a more complete code example so that we can dig a bit more into it? |
All the errors mentioned above are the result of constructing an invalid transaction, but without a more complete version of your code its hard to tell whats going on. When a transaction uses sui, you need to be careful to not use the same coin for gas and other inputs. The easiest way to avoid this is to use coinWithBalance: https://sdk.mystenlabs.com/typescript/transaction-building/intents#the-coinwithbalance-intent To do this manually, your address likely only has a single sui coin. Rather than selecting coins to use directly in your transaction, the common pattern is to split off new coins off the gas coin ( |
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: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 }
The text was updated successfully, but these errors were encountered: