Move.

Post

Share your knowledge.

hohm.
Jan 25, 2025
Expert Q&A

What causes MoveAbort errors with 'split' in transactions?

I've been encountering MoveAbort errors in my transactions, specifically with the function 'split'. The error seems related to a balance issue, as indicated by a message about splitting more than the coin's balance. What exactly does this mean and why does it happen?

  • Move CLI
2
1
Share
Comments
.

Answers

1
skywinder.
Jan 25 2025, 17:17

The error occurs because you are trying to split out more than the coin has a balance of. This means the transaction attempts to divide a coin beyond what's available in balance, leading to the abort. Check out this link for more details: https://github.com/MystenLabs/sui/blob/main/crates/sui-framework/packages/sui-framework/sources/balance.move#L78

2
Comments
.

Do you know the answer?

Please log in and share it.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Posts231Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignJune
We use cookies to ensure you get the best experience on our website.
More info