We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
22.0.0-rc.1
Created a snapshot like so:
stellar snapshot create --address $myaccount --address $contractid
Then used the snapshot to create an environment for my contract test using Env::from_ledger_snapshot_file.
Env::from_ledger_snapshot_file
Because $myaccount is a Stellar account, and the function tested on $contractid results in a SAC transfer, the test failed with the following:
$myaccount
$contractid
topics:[error, Error(Storage, MissingValue)], data:"trying to get non-existing value for contract instance"
This appears to be because trustlines are not saved to the snapshot file or are not loaded when creating the environment.
The text was updated successfully, but these errors were encountered:
Requires some investigation. Snapshots are supposed to include all the trust lines of an account when an account is specified.
For example:
stellar-cli/cmd/soroban-cli/src/commands/snapshot/create.rs
Lines 284 to 286 in 90db678
Sorry, something went wrong.
No branches or pull requests
What version are you using?
22.0.0-rc.1
What did you do?
Created a snapshot like so:
Then used the snapshot to create an environment for my contract test using
Env::from_ledger_snapshot_file
.Because
$myaccount
is a Stellar account, and the function tested on$contractid
results in a SAC transfer, the test failed with the following:This appears to be because trustlines are not saved to the snapshot file or are not loaded when creating the environment.
The text was updated successfully, but these errors were encountered: