Skip to content

Commit

Permalink
Simulate: Don't attempt to sign transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ckamm committed Dec 21, 2022
1 parent 4bef8c4 commit 0085d00
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion ts/packages/anchor/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ export class AnchorProvider implements Provider {
)
).blockhash;

tx = await this.wallet.signTransaction(tx);
const result = await simulateTransaction(
this.connection,
tx,
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/anchor/src/utils/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export async function simulateTransaction(
};
}

if (signers) {
if (signers && signers.length > 0) {
config.sigVerify = true;
}

Expand Down

0 comments on commit 0085d00

Please sign in to comment.