Skip to content

Drop mixed classic/contract batching advice from the dapp skill - #174

Merged
stellar-triage-bot[bot] merged 2 commits into
mainfrom
issue-agent/173-no-mixed-batching
Nov 3, 2026
Merged

stellar-triage-bot[bot] merged 2 commits into
mainfrom
issue-agent/173-no-mixed-batching

Conversation

@stellar-triage-bot

@stellar-triage-bot stellar-triage-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Automated message from the Stellar Triage Bot.

The dapp skill said to use low-level invocation to batch a contract call with classic operations. That shape is not valid. A smart contract transaction holds exactly one operation.

  • skills/dapp/SKILL.md: give the low-level path a real reason, state the one-operation rule, and point to contract composition or separate transactions.
  • evals/scenarios/dapp/04-no-mixed-batching.json: new scenario for a "contract call plus payment in one transaction" request.

Sources checked:

  • stellar-rpc simulate_transaction.go: simulation returns "Transaction contains more than one operation". prepareTransaction (js-stellar-sdk v17.4.0) throws that error.
  • js-stellar-sdk v17.4.0 src/rpc/transaction.ts: assembleTransaction also throws unless the transaction has exactly one invokeHostFunction, extendFootprintTtl or restoreFootprint operation.
  • stellar-core TransactionFrame.cpp: a Soroban operation with any other operation fails with txMALFORMED.
  • Stellar docs, Operations and transactions: smart contract transactions "can only have one operation per transaction".

Closes #173

A smart contract transaction can hold only one operation, so a contract
call cannot be batched with classic operations. prepareTransaction throws
on that shape and stellar-core rejects it as txMALFORMED. Give the
low-level path a real reason, state the one-operation rule, and point to
contract composition or separate transactions instead. Add an eval
scenario for the mixed-batch request.
prepareTransaction simulates first, and stellar-rpc refuses a transaction with more than one operation, so the throw comes from simulation, not from assembly.
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-11-03 19:19 UTC

@stellar-triage-bot

Copy link
Copy Markdown
Contributor Author

🤖 Automated message from the Stellar Triage Bot.

Verified at 36fd4b1. Merging.

  • The diff changes one paragraph in skills/dapp/SKILL.md and adds one eval scenario.
  • Sources agree: stellar-rpc simulation, js-stellar-sdk v17.4.0 and stellar-core all reject a contract call mixed with classic operations.
  • The preview check passed (install, lint, lint:ts, ecosystem-links, build).
  • No Copilot review attached. The request from this account does not register.

@stellar-triage-bot
stellar-triage-bot Bot merged commit e8c6c37 into main Nov 3, 2026
7 checks passed
@stellar-triage-bot
stellar-triage-bot Bot deleted the issue-agent/173-no-mixed-batching branch November 3, 2026 19:17
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.

Remove unsupported classic-operation batching from the dapp skill invocation guidance

0 participants