@dfns/lib-ethersjs5 0.1.0-beta.4 → 0.1.0-beta.6

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -61,7 +61,8 @@ class DfnsWallet extends abstract_signer_1.Signer {
61
61
  }
62
62
  maxRetries -= 1;
63
63
  }
64
- throw new Error(`signature ${signatureId} not available`);
64
+ const waitedSeconds = Math.floor((this.options.maxRetries * retryInterval) / 1000);
65
+ throw new Error(`Signature request ${signatureId} took more than ${waitedSeconds}s to complete, stopping polling. Please update options "maxRetries" or "retryIntervals" to wait longer.`);
65
66
  }
66
67
  async signTransaction(transaction) {
67
68
  return (0, properties_1.resolveProperties)(transaction).then(async (tx) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/lib-ethersjs5",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.0-beta.6",
4
4
  "dependencies": {
5
5
  "@ethersproject/abstract-provider": "5.7.0",
6
6
  "@ethersproject/abstract-signer": "5.7.0",
@@ -15,7 +15,7 @@
15
15
  "uuid": "9.0.0"
16
16
  },
17
17
  "peerDependencies": {
18
- "@dfns/sdk": "0.1.0-beta.4"
18
+ "@dfns/sdk": "0.1.0-beta.6"
19
19
  },
20
20
  "main": "./index.js",
21
21
  "types": "./index.d.ts"