@cowprotocol/sdk-bridging 0.2.0-beta.0 → 0.2.1-beta.0

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.
package/dist/index.js CHANGED
@@ -3832,7 +3832,7 @@ async function createBungeeDepositCall(params) {
3832
3832
 
3833
3833
  // src/providers/bungee/getBridgingStatusFromEvents.ts
3834
3834
  async function getBridgingStatusFromEvents(events, getAcrossStatus) {
3835
- if (!events?.length) {
3835
+ if (!events?.length || !events?.[0]) {
3836
3836
  return { status: "unknown" /* UNKNOWN */ };
3837
3837
  }
3838
3838
  const event = events[0];
package/dist/index.mjs CHANGED
@@ -3796,7 +3796,7 @@ async function createBungeeDepositCall(params) {
3796
3796
 
3797
3797
  // src/providers/bungee/getBridgingStatusFromEvents.ts
3798
3798
  async function getBridgingStatusFromEvents(events, getAcrossStatus) {
3799
- if (!events?.length) {
3799
+ if (!events?.length || !events?.[0]) {
3800
3800
  return { status: "unknown" /* UNKNOWN */ };
3801
3801
  }
3802
3802
  const event = events[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cowprotocol/sdk-bridging",
3
- "version": "0.2.0-beta.0",
3
+ "version": "0.2.1-beta.0",
4
4
  "description": "Bridging for CoW Protocol",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",