@woof-software/contracts-tools-sdk-ethers 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Contract as EthersContract, WebSocketProvider, } from "ethers";
1
+ import { Contract as EthersContract, } from "ethers";
2
2
  import { config } from "../config.js";
3
3
  import { CONTRACTS_ERRORS } from "../errors/index.js";
4
4
  import { isSigner, isStaticMethod, priorityCall, priorityCallEstimate, } from "../helpers/index.js";
@@ -164,8 +164,7 @@ export class BaseContract {
164
164
  async listenEvent(eventName, listener) {
165
165
  if (!this.isCallable)
166
166
  throw CONTRACTS_ERRORS.NON_CALLABLE_CONTRACT_INVOCATION;
167
- if (!(this.provider instanceof WebSocketProvider))
168
- throw CONTRACTS_ERRORS.MISSING_WEBSOCKET_PROVIDER;
167
+ // Removed WS check
169
168
  return this.contract.on(eventName, listener);
170
169
  }
171
170
  async getLogs(fromBlock, eventsNames = [], toBlock = 0, options = {}) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@woof-software/contracts-tools-sdk-ethers",
3
3
  "description": "Module simplify smart contract interactions and multicall3 aggregation on the Ethereum blockchain and other EVM-compatible networks.",
4
- "version": "0.0.14",
4
+ "version": "0.0.15",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/woof-compound/sandbox-sdks.git"