Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Jul 27, 2021
1 parent a0792f7 commit 96ed35e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/multi-test/src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,10 @@ where
.get(&contract.code_id)
.ok_or_else(|| "Unregistered code id".to_string())?;

// We don't actually need a transaction here, as it is already embedded in a transactional.
// execute_submsg or App.execute_multi.
// However, we need to get write and read access to the same storage in two different objects,
// and this is the only way I know how to do so.
transactional(storage, |write_cache, read_store| {
let mut contract_storage = self.contract_storage(write_cache, &address);
let querier = RouterQuerier::new(router, read_store, block);
Expand Down

0 comments on commit 96ed35e

Please sign in to comment.