Skip to content

Commit

Permalink
Simulate: Only sign when signers is non-null
Browse files Browse the repository at this point in the history
  • Loading branch information
ckamm committed Dec 26, 2022
1 parent 4bef8c4 commit 8b6f2ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/packages/anchor/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ export class AnchorProvider implements Provider {
)
).blockhash;

tx = await this.wallet.signTransaction(tx);
if (signers) {
tx = await this.wallet.signTransaction(tx);
}
const result = await simulateTransaction(
this.connection,
tx,
Expand Down

0 comments on commit 8b6f2ee

Please sign in to comment.