Skip to content
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

Fix tealdbg Accounts array #1872

Merged
merged 1 commit into from
Jan 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/tealdbg/cdtState.go
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ func makeTxnImpl(txn *transactions.Transaction, groupIndex int, preview bool) (d
var length int
switch logic.TxnField(fieldIdx) {
case logic.Accounts:
length = len(txn.Accounts)
length = len(txn.Accounts) + 1
case logic.ApplicationArgs:
length = len(txn.ApplicationArgs)
}
Expand Down Expand Up @@ -765,7 +765,7 @@ func makeTxnArrayField(s *cdtState, groupIndex int, fieldIdx int) (desc []cdt.Ru
var length int
switch logic.TxnField(fieldIdx) {
case logic.Accounts:
length = len(txn.Accounts)
length = len(txn.Accounts) + 1
case logic.ApplicationArgs:
length = len(txn.ApplicationArgs)
}
Expand Down