Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
AVM: Make
txn FirstValidTime
andblock
opcode available in logicsigs #4371AVM: Make
txn FirstValidTime
andblock
opcode available in logicsigs #4371Changes from 2 commits
621713f
5795cef
5f96e4d
8b532b0
eb475c4
6e1b384
98289e7
d0a6e2b
71a4d5f
8a0f216
9504d00
aee4243
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
this is confusing.
cow.Round() is always the current (latest +1). So the old test is valid and the new one is not.
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.
my understanding is we supply cow to contracts and ledger to logicsig. But the same
Round()
method returns the different values.Maybe one should be Latest() and another Round()?
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 think I know what's going on now. I added a Round() method to ledger.Ledger, so I could use it as a LedgerForSignature. I should have used Latest()+1, but used Latest(). I need to get them doing the same thing, and then the test will go back to what it was.
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.
This should be back to making sense.