simulateTransaction can now return accounts modified by the simulation
This commit is contained in:
@@ -83,7 +83,7 @@ mod tests {
|
||||
let (bank, txs) = setup();
|
||||
|
||||
// Prepare batch without locks
|
||||
let batch = bank.prepare_simulation_batch(&txs);
|
||||
let batch = bank.prepare_simulation_batch(&txs[0]);
|
||||
assert!(batch.lock_results().iter().all(|x| x.is_ok()));
|
||||
|
||||
// Grab locks
|
||||
@@ -91,7 +91,7 @@ mod tests {
|
||||
assert!(batch2.lock_results().iter().all(|x| x.is_ok()));
|
||||
|
||||
// Prepare another batch without locks
|
||||
let batch3 = bank.prepare_simulation_batch(&txs);
|
||||
let batch3 = bank.prepare_simulation_batch(&txs[0]);
|
||||
assert!(batch3.lock_results().iter().all(|x| x.is_ok()));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user