@lit-protocol/vincent-ability-morpho 0.1.1-mma → 0.1.2-mma
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/ethers-v6-shim.js +12 -0
- package/dist/package.json +1 -1
- package/dist/src/generated/lit-action.js +2 -2
- package/dist/src/generated/vincent-ability-metadata.json +1 -1
- package/dist/src/generated/vincent-bundled-ability.d.ts +0 -3
- package/dist/src/generated/vincent-bundled-ability.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib/schemas.d.ts +0 -4
- package/dist/src/lib/schemas.d.ts.map +1 -1
- package/dist/src/lib/schemas.js +1 -3
- package/dist/src/lib/schemas.js.map +1 -1
- package/dist/src/lib/vincent-ability.d.ts +0 -3
- package/dist/src/lib/vincent-ability.d.ts.map +1 -1
- package/dist/src/lib/vincent-ability.js +2 -37
- package/dist/src/lib/vincent-ability.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @morpho-org/bundler-sdk-ethers uses ethers v6 to call new ethers.Interface
|
|
2
|
+
// but ethers v5 has it under ethers.utils.Interface
|
|
3
|
+
// This shim is to make sure the bundler-sdk-ethers can work with both v5 and v6
|
|
4
|
+
//
|
|
5
|
+
try {
|
|
6
|
+
const ethers = require('ethers');
|
|
7
|
+
if (!ethers.Interface && ethers.utils && ethers.utils.Interface) {
|
|
8
|
+
ethers.Interface = ethers.utils.Interface;
|
|
9
|
+
}
|
|
10
|
+
} catch (e) {
|
|
11
|
+
// no-op
|
|
12
|
+
}
|