Skip to content

Commit

Permalink
switch order of isSimulationRestore and restore check
Browse files Browse the repository at this point in the history
Co-authored-by: George <[email protected]>
  • Loading branch information
chadoh and Shaptic committed Jun 13, 2024
1 parent 319d577 commit d009c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contract/assembled_transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ export class AssembledTransaction<T> {
delete this.simulationTransactionData;
this.simulation = await this.server.simulateTransaction(this.built);

if (Api.isSimulationRestore(this.simulation) && restore) {
if (restore && Api.isSimulationRestore(this.simulation)) {
const account = await getAccount(this.options, this.server);
const result = await this.restoreFootprint(
this.simulation.restorePreamble,
Expand Down

0 comments on commit d009c0e

Please sign in to comment.