-
Notifications
You must be signed in to change notification settings - Fork 45
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
[BUG] Error thrown on doReadState #497
Labels
Comments
dtfiedler
pushed a commit
to dtfiedler/warp
that referenced
this issue
Jan 26, 2024
Resolved with fix. This issue can be closed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When reading the state for new interactions an error is thrown, here is the stack trace:
I believe this links to here and the code below needs to be moved up to before the validity object is accessed - normally, it seems this would have been set elsewhere or by reference elsewhere, however, i think, that due to the transaction being new (less than 2 minutes old at the time of this error) the GQL node's height was
null
which is a valid value for it to be.To Reproduce
You should be able to reproduce this a couple different ways:
by duplicating the tags on this transaction :
_oKeJUJLwtdD30uYzzV-afi0pQEpJIDZGCTC4qklWV0
- it is a Turbo (optimistically cached) L1 bundle with a $U tokenmint
interaction and an ArNStick
interaction (should be able to copy the tags directly from the example tx), deploying it, and attempting an evaluation of the contract using the optimistically cached TXby going into the warp SDK and modifying an interaction's gql node to mimic the return of optimistically cached interaction data
Expected behavior
The SDK should not crash on contract evaluation
Desktop (please complete the following information):
Additional context
This happened on arns.app when executing a domain purchase and evaluating a tick state interaction.
The text was updated successfully, but these errors were encountered: