Simulate: Don't require wallet signature
This commit is contained in:
parent
e08a583cba
commit
01106c1bb1
|
@ -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,
|
||||||
|
|
|
@ -151,7 +151,7 @@ export async function simulateTransaction(
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (signers) {
|
if (signers && signers.length > 0) {
|
||||||
config.sigVerify = true;
|
config.sigVerify = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue