`tx update sequence-number next` fails when the transaction source is a muxed account
Maintainers usually reply within 2 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start with the stellar tx update sequence-number next command and reproduce the failure using the muxed-account transaction shown in the issue. Trace how the transaction source is decoded and how the underlying account's sequence number is fetched, then verify that the command succeeds for both muxed and regular sources and preserves the expected transaction output.
Written by the indexing model from the issue text.
Description
What version are you using?
stellar-cli 28.1.0 (d0b26d9, built from main).
What did you do?
I built a payment with a muxed (M…) source account and asked the CLI to fill in the next sequence number:
Setup transaction:
$ stellar network use testnet
$ stellar keys generate alice --fund
$ stellar keys generate bob --fund
$ stellar keys address alice
GD2B52NO66LDB7V745JLNTTWNHBSQJDY3GODG36E6JLUX4F5MMVPSB4H
$ alice_m123=$(stellar keys address alice | stellar-strkey decode | jq '{muxed_account_ed25519: {ed25519: .public_key_ed25519, id: 123}}' | stellar-strkey encode)
$ echo $alice_m123
MD2B52NO66LDB7V745JLNTTWNHBSQJDY3GODG36E6JLUX4F5MMVPSAAAAAAAAAAAPPTC4
$ tx=$(stellar tx new payment --source $alice_m123 --destination bob --amount 1 --build-only)
$ echo $tx
AAAAAgAAAQAAAAAAAAAAe/Qe6a73ljD+v+dSts52acMoJHjZnDNvxPJXS/C9Yyr5AAAAZABLt2UAAAABAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAzzHaMX7aCe5rN/dBo5nmtZm9AZNqta0rENosve8iCk8AAAAAAAAAAAAAAAEAAAAAAAAAAA==
Attempt to update its sequence number:
$ echo $tx | stellar tx update sequence-number next
What did you expect to see?
The transaction updated with the next sequence number of the underlying G… account, the same as when the source is alice. For example:
$ stellar tx new payment --source alice --destination bob --amount 1 --build-only \
| stellar tx update sequence-number next
AAAAAgAAAAD0Humu95Yw/r/nUrbOdmnDKCR42Zwzb8TyV0vwvWMq+QAAAGQAS7dlAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAM8x2jF+2gnuazf3QaOZ5rWZvQGTarWtKxDaLL3vIgpPAAAAAAAAAAAAAAABAAAAAAAAAAA=
What did you see instead?
Fails when the tx source is a muxed:
$ stellar tx new payment --source $alice_m123 --destination bob --amount 1 --build-only \
| stellar tx update sequence-number next
❌ error: the strkey decodes to more bytes than allowed
- Dominant language
- Rust
- Stars
- 123
- Forks
- 147
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 39
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stellar/stellar-cli
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
stellar/stellar-cli#2781 ·
Maintainers usually reply within 2 days
-
Display the full authorization tree before signing auth entriesPossibly taken @DeadZen claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
stellar/stellar-cli#2779 ·
Maintainers usually reply within 2 days
-
`tx edit` fails on transaction XDR that is wrapped across multiple linesPossibly taken @neimasilk-arch claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
stellar/stellar-cli#2773 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stellar/stellar-cli#2770 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stellar/stellar-cli#2753 ·
Maintainers usually reply within 2 days
All issues in stellar/stellar-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
check: a failed re-read of the model file before binding is labelled E_THETA_LEVEL_BINDING on [parameters]Possibly taken @TeunP claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
Devolutions/picky-rs#546 · 1 comment ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day