Skip to content

Allow to load or combine multiple snapshot files #2228

@tupui

Description

@tupui

What problem does your feature solve?

When you use a snapshot for testing, you sometimes have to consider another contract or address. When that happens, you need to recreate a snapshot and make sure to consider all the addresses you need.

One issue is that if you manually edited the snapshot for some reason (e.g. adjusting an address or some balances), then you need to remember to do that again.

What would you like to see?

I would like to be able to load multiple snapshots in the env. It could be at once when calling Env::from_ledger_snapshot_file or we could have an append function or else.

What alternatives are there?

Regenerate a file every time and make sure you don't forget manual adjustments if any.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Needs Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions