You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solana client has a a feature that allows you to generate and use a mock rpc client, which is supremely useful when doing unit tests. Anchor client (as far as I can tell) doesn't support this when using RequestBuilder and instead always uses the passed cluster under the hood:
Solana client has a a feature that allows you to generate and use a mock rpc client, which is supremely useful when doing unit tests. Anchor client (as far as I can tell) doesn't support this when using RequestBuilder and instead always uses the passed cluster under the hood:
(https://github.com/coral-xyz/anchor/blob/master/client/src/lib.rs#L641)
(https://github.com/coral-xyz/anchor/blob/master/client/src/lib.rs#L650)
... and more
It would be cool if we could pass in an RPCClient instead of a cluster when creating a client to allow for mocking.
The text was updated successfully, but these errors were encountered: