Skip to content

Conversation

@barnjamin
Copy link
Contributor

Summary

In tealdbg, the txn obj has a number of fields that are only available after the transaction has been evaluated in ApplyData. At the moment we show "Unable to obtain effects from top-level transactions" from https://github.com/algorand/go-algorand/blob/master/data/transactions/logic/eval.go#L1939 . This should be hidden for now.

image

Copy link
Contributor

@jannotti jannotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use fs.effects as the test, instead of the specific field names?

@barnjamin
Copy link
Contributor Author

you mean here? https://github.com/algorand/go-algorand/blob/master/data/transactions/logic/eval.go#L1887

the txnFieldSpecByField array is not exported so I think I'd have to push the test for these fields over there.

Just skip appending to fieldDesc if I get an error back?

@jannotti
Copy link
Contributor

Yeah, I guess it's too much of a pain just for this. I was thinking you had the fs, and would just need to change effects to Effects so you could see it. This is fine for now, especially since I do think this stuff is going to become available soon and it can be handled better then.

@algojohnlee algojohnlee merged commit 473fa37 into algorand:master Oct 21, 2021
@barnjamin barnjamin deleted the tealdbg-unexposed-fields branch October 21, 2021 17:24
cce pushed a commit to cce/go-algorand that referenced this pull request Oct 28, 2021
In tealdbg, the txn obj has a number of fields that are only available after the transaction has been evaluated in ApplyData. At the moment we show "Unable to obtain effects from top-level transactions" from https://github.com/algorand/go-algorand/blob/master/data/transactions/logic/eval.go#L1939 . This should be hidden for now.
@egieseke egieseke mentioned this pull request Nov 23, 2021
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.

3 participants