Skip to content

Conversation

@Alex6323
Copy link
Contributor

@Alex6323 Alex6323 commented Oct 22, 2025

  1. removes .gas() for single gas coins
  2. renames .gas_coins() to .gas() to now always allow to provide multiple gas coins.

Closes #291

@Alex6323 Alex6323 linked an issue Oct 22, 2025 that may be closed by this pull request
@Alex6323 Alex6323 changed the title docs(tx-builder): rename and document .gas_multi feat(tx-builder): rename and imporove .gas_coins docs Oct 22, 2025
@Alex6323 Alex6323 changed the title feat(tx-builder): rename and imporove .gas_coins docs feat(tx-builder): rename and improve .gas_coins docs Oct 22, 2025
@DaughterOfMars
Copy link
Contributor

Honestly I'd rather just accept an array in gas and remove the other fn

@Alex6323
Copy link
Contributor Author

Alex6323 commented Oct 22, 2025

Honestly I'd rather just accept an array in gas and remove the other fn

sure about it? Most users will just pass one coin, and they'ld then have to deal with array syntax all the time. Providing an extra "multi" version is quite common in the monorepo, but 🤷‍♂️ @Thoralf-M @thibault-martinez opinions?

@Thoralf-M
Copy link
Member

I also prefer a single gas method which accepts multiple gas coins, even if a user provides only a single gas coin it's not that annoying to make an array with just that and less methods make it less overwhelming

@Alex6323 Alex6323 changed the title feat(tx-builder): rename and improve .gas_coins docs feat(tx-builder): Unify gas methods and improve/update docs Oct 30, 2025
DaughterOfMars and others added 4 commits October 31, 2025 12:21
* feat(ci): add links checker

* remove PR
* feat(iota-transaction-builder): improve send_coins docs

* hide main fn

* update bindings

* update import

* clarify that all coins must have the same type

* remove brackets
@DaughterOfMars DaughterOfMars merged commit 0b9dd80 into sdk-bindings Nov 3, 2025
14 checks passed
@DaughterOfMars DaughterOfMars deleted the docs/tx-builder-gas-multi branch November 3, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tx builder: document TransactionBuilder::gas_coins()

5 participants