@rango-dev/provider-walletconnect-2 0.21.0 → 0.21.1-next.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.
@@ -116,6 +116,12 @@ class EVMSigner implements GenericSigner<EvmTransaction> {
116
116
  params: [transaction],
117
117
  },
118
118
  });
119
+ // Some wallets e.g. Rainbow wallet are returning invalid hash (e.g. 'null') in case of the rejection
120
+ if (!hash?.startsWith('0x')) {
121
+ throw new Error(
122
+ `Received an invalid hash on signing the transaction. (hash=${hash})`
123
+ );
124
+ }
119
125
  return {
120
126
  hash,
121
127
  };
package/src/types.ts CHANGED
@@ -15,7 +15,6 @@ export interface CreateSessionParams {
15
15
  }
16
16
 
17
17
  export interface ConnectParams {
18
- network: string;
19
18
  meta: BlockchainMeta[];
20
19
  }
21
20