-
Notifications
You must be signed in to change notification settings - Fork 471
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
Enable debugging itxn programs #2900
Enable debugging itxn programs #2900
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2900 +/- ##
==========================================
+ Coverage 47.10% 47.29% +0.19%
==========================================
Files 349 355 +6
Lines 56351 57179 +828
==========================================
+ Hits 26544 27043 +499
- Misses 26831 27078 +247
- Partials 2976 3058 +82
Continue to review full report at Codecov.
|
1199e34
to
591245f
Compare
@@ -338,41 +338,6 @@ func (dl *dryrunLedger) GetCreatorForRound(rnd basics.Round, cidx basics.Creatab | |||
return basics.Address{}, false, fmt.Errorf("unknown creatable type %d", ctype) | |||
} | |||
|
|||
func (dl *dryrunLedger) getAppParams(addr basics.Address, aidx basics.AppIndex) (params basics.AppParams, err error) { |
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.
removed some unused code
591245f
to
ece4d09
Compare
ece4d09
to
f2ad694
Compare
var response generated.DryrunResponse | ||
doDryrunRequest(&dr, &response) | ||
require.NoError(t, err) | ||
checkAppCallPass(t, &response) |
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.
It seems like we neglected to add inner transactions to the DryrunTxnResult
API type. @jannotti was there a reason for this, or did we just forgot about it?
Ideally any created inner transactions would be returned in that response and this test could verify they are there and properly formatted.
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.
Definitely not on purpose.
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.
I am incapable of expressing how much I hate that dryrun lives in its own universe where we have to do everything all over again.
1638429
to
c4e9dce
Compare
![GitHub Logo](https://raw.githubusercontent.com/algorand/go-algorand/master/release/release-banner.jpg) # Highlights This version adds debugging for itxn programs and includes a bugfix for dryrun crashes. **This release does not contain a protocol upgrade.** # Changes 1. TEAL * Added * Enable debugging itxn programs (#2900) * Fixed * Fix dryrun crash on rewards calculation (#2894) ## Additional Resources * [Algorand Forum](https://forum.algorand.org) * [Developer Documentation](https://developer.algorand.org)
Summary
Set special addressed in EvalParams when evaluating from tealdbg/dryrun
Test Plan
Tests added