Skip to content
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

Potentially mishandling expired entries in pre-flight #116

Closed
aristidesstaffieri opened this issue Jul 31, 2023 · 4 comments
Closed

Potentially mishandling expired entries in pre-flight #116

aristidesstaffieri opened this issue Jul 31, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@aristidesstaffieri
Copy link

aristidesstaffieri commented Jul 31, 2023

Describe the bug
I'm trying to simulate a tx with the following envelope -

AAAAAgAAAACM6IR9GHiRoVVAO78JJNksy2fKDQNs2jBn8bacsRLcrAAAAGQAALDTAAAAQAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAAKAAAAEgAAAAEA1OFYsQR9ohuN4/lO01H0QR1gs0ydtgleqtNpia/V2AAAAA8AAAAEc3dhcAAAABIAAAAAAAAAAIzohH0YeJGhVUA7vwkk2SzLZ8oNA2zaMGfxtpyxEtysAAAAEgAAAAAAAAAA6BZdgAk/R2ZGwnrmk/TACHUraXX+fMDNz9uJ5e9/AJ0AAAASAAAAAfqr9cWsTR0VECjHorwcNTdllgfWPl95BDxSVggu+Z6lAAAAEgAAAAEN+Pv7pUMOoJ6rFclWu0CY3+3qzX6/IrjFY1zyC+VitQAAAAoAAAAAAAAAAAAAAAAAAAABAAAACgAAAAAAAAAAAAAAAAAAAAUAAAAKAAAAAAAAAAAAAAAAAAAABQAAAAoAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA

and assembleTransaction throws the following error

which I think is from this line, because the preflight for this request returns no result key at all. Here is what I get from the simulate call -

{
    "error": "HostError: Error(Storage, MissingValue)\nDebugInfo not available\n",
    "transactionData": "",
    "events": null,
    "minResourceFee": "0",
    "cost": {
        "cpuInsns": "0",
        "memBytes": "0"
    },
    "latestLedger": "163263"
}

What version are you on?
0.9.2

To Reproduce
You can run this dapp or just the code that from the buildSwap call.
stellar/soroban-react-atomic-swap#4

Expected behavior
This was expired contract code. I'm not sure what the behavior should be, maybe if no results we can throw an error that lets the user know that they should restore the contract code.

Additional context
Slack thread about it - https://stellarfoundation.slack.com/archives/C030Z9EHVQE/p1690827512838819

@aristidesstaffieri aristidesstaffieri added the bug Something isn't working label Jul 31, 2023
@aristidesstaffieri aristidesstaffieri self-assigned this Jul 31, 2023
@aristidesstaffieri
Copy link
Author

so there was a cli bug that made this confusing for me but in this case, the contract code was expired not the data.

@willemneal
Copy link
Member

Also when using the CLI very verbose will print more logs.
E.g.

soroban --vv ...

@aristidesstaffieri
Copy link
Author

Also when using the CLI very verbose will print more logs. E.g.

soroban --vv ...

Thanks!

@aristidesstaffieri
Copy link
Author

closing this, this works fine and my preflight response just had an error I didn't understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants