-
Notifications
You must be signed in to change notification settings - Fork 493
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
Simplify dryrunning and debugging group txn #1405
Conversation
txns = append(txns, other...) | ||
for i := range txns { | ||
enc := protocol.EncodeJSON(&txns[i]) | ||
dr.Txns = append(dr.Txns, enc) | ||
} | ||
|
||
if tx.Type == protocol.ApplicationCallTx { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
entire if tx.Type == protocol.ApplicationCallTx {
block moved inside the loop without modifications
if txnOrStxn == nil { | ||
// empty input do nothing | ||
} else if txn, ok := txnOrStxn.(transactions.Transaction); ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allow pre-existing groups of signed transactions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one comment that could be further clarified.
* Extend clerk dryrun so it can dump dryrun state object suitable for REST, tealdbg and python tests goal clerk dryrun -t grouptxn.msgp -o dr.mspg --dryrun-dump --dryrun-dump-format=msgp * Fix parameter validation in tealdbg * Fix NPE in REST dryrun when a first txn in a group non-TEAL
7100707
to
2980e8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
Extend clerk dryrun so it can dump dryrun state object suitable for REST, tealdbg and python tests
Summary
goal clerk dryrun -t grouptxn.msgp -o dr.mspg --dryrun-dump --dryrun-dump-format=msgp
Test Plan
Extended expect test for group txn