-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
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):
await clobProgram.methods
.getMarketMakerBalances(failMM.publicKey)
.accounts({
orderBook: failMarket,
})
.view();
A workaround is to pass the signer as a payer, like so:
await clobProgram.methods
.getMarketMakerBalances(failMM.publicKey)
.accounts({
orderBook: failMarket,
})
.signers([payer])
.view();
Metadata
Metadata
Assignees
Labels
No labels