MCPcopy Create free account
hub / github.com/subquery/subql / isSigner

Function isSigner

packages/cli/src/controller/network/constants.ts:88–90  ·  view source on GitHub ↗
(signerOrProvider: Signer | Provider)

Source from the content-addressed store, hash-verified

86}
87
88export function isSigner(signerOrProvider: Signer | Provider): signerOrProvider is Signer {
89 return typeof (signerOrProvider as Signer).getAddress === 'function';
90}
91
92export function getContractSDK(signerOrProvider: Signer | Provider, network: SQNetworks): ContractSDK {
93 return new ContractSDK(signerOrProvider, {network});

Callers 2

disconnectWalletAdapterFunction · 0.90
requireSignerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected