UNPKG

butterjs-sdk

Version:
10 lines (9 loc) 406 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isEthersProvider = void 0; const ethers_1 = require("ethers"); const abstract_provider_1 = require("@ethersproject/abstract-provider"); function isEthersProvider(provider) { return provider instanceof ethers_1.Signer || provider instanceof abstract_provider_1.Provider; } exports.isEthersProvider = isEthersProvider;