Simulate: Don't require wallet signature

This commit is contained in:
Christian Kamm 2022-07-14 10:23:44 +02:00
parent e08a583cba
commit 01106c1bb1
2 changed files with 4 additions and 2 deletions

View File

@ -229,7 +229,9 @@ export class AnchorProvider implements Provider {
) )
).blockhash; ).blockhash;
tx = await this.wallet.signTransaction(tx); // Don't ask the wallet to sign
//tx = await this.wallet.signTransaction(tx);
const result = await simulateTransaction( const result = await simulateTransaction(
this.connection, this.connection,
tx, tx,

View File

@ -151,7 +151,7 @@ export async function simulateTransaction(
}; };
} }
if (signers) { if (signers && signers.length > 0) {
config.sigVerify = true; config.sigVerify = true;
} }