diff --git a/ts/src/provider.ts b/ts/src/provider.ts index ed499720..f455d9c3 100644 --- a/ts/src/provider.ts +++ b/ts/src/provider.ts @@ -229,7 +229,9 @@ export class AnchorProvider implements Provider { ) ).blockhash; - tx = await this.wallet.signTransaction(tx); + // Don't ask the wallet to sign + //tx = await this.wallet.signTransaction(tx); + const result = await simulateTransaction( this.connection, tx, diff --git a/ts/src/utils/rpc.ts b/ts/src/utils/rpc.ts index 46f8defb..79013b71 100644 --- a/ts/src/utils/rpc.ts +++ b/ts/src/utils/rpc.ts @@ -151,7 +151,7 @@ export async function simulateTransaction( }; } - if (signers) { + if (signers && signers.length > 0) { config.sigVerify = true; }