Open metaproph3t opened 9 months ago
For the first code block, can you check if the ._signers
attribute is empty in both regular anchor and anchor-bankrun? One guess is that BanksServer is checking signatures and solana-test-validator is not
The standard simulateTransaction
RPC method has additional config parameters such as sigVerify
and replaceRecentBlockhash
which are used extensively across different implementations, as we often don't care about those aspects when simulating a tx (such as when calculating CU).
Perhaps it is related to that?
When I try to use the
.view()
functionality provided by Anchor, I get a 'Signature verification failed' error.For example, the following code gives this error (in bankrun, but not in normal anchor):
A workaround is to pass the signer as a payer, like so: