@obolnetwork/obol-sdk 2.11.5-rc.2 → 2.11.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.
- package/dist/browser/src/index.js +12 -8
- package/dist/browser/src/index.js.map +1 -1
- package/dist/cjs/src/index.js +5 -7
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/esm/src/index.js +12 -8
- package/dist/esm/src/index.js.map +1 -1
- package/dist/types/src/eoa/eoaHelpers.d.ts +2 -3
- package/package.json +1 -1
package/dist/cjs/src/index.js
CHANGED
|
@@ -171,7 +171,7 @@ var import_uuid = require("uuid");
|
|
|
171
171
|
// package.json
|
|
172
172
|
var package_default = {
|
|
173
173
|
name: "@obolnetwork/obol-sdk",
|
|
174
|
-
version: "2.11.
|
|
174
|
+
version: "2.11.6",
|
|
175
175
|
description: "A package for creating Distributed Validators using the Obol API.",
|
|
176
176
|
bugs: {
|
|
177
177
|
url: "https://github.com/obolnetwork/obol-sdk/issues"
|
|
@@ -15272,7 +15272,7 @@ var deployOVMContract = (_0) => __async(null, [_0], function* ({
|
|
|
15272
15272
|
throw new Error("Failed to extract OVM address from transaction logs");
|
|
15273
15273
|
}
|
|
15274
15274
|
const ovmAddress = "0x" + ovmAddressLog.slice(26, 66);
|
|
15275
|
-
return ovmAddress;
|
|
15275
|
+
return (0, import_ethers5.getAddress)(ovmAddress);
|
|
15276
15276
|
} catch (error) {
|
|
15277
15277
|
throw new Error(
|
|
15278
15278
|
`Failed to deploy OVM contract: ${(_c = error.message) != null ? _c : "OVM deployment failed"}`
|
|
@@ -16766,11 +16766,10 @@ function submitEOAWithdrawalRequest(_0) {
|
|
|
16766
16766
|
withdrawalContractAddress,
|
|
16767
16767
|
requiredFee,
|
|
16768
16768
|
chainId,
|
|
16769
|
-
signer
|
|
16770
|
-
provider
|
|
16769
|
+
signer
|
|
16771
16770
|
}) {
|
|
16772
16771
|
if (!withdrawalAddress) throw new Error("No withdrawal address provided");
|
|
16773
|
-
if (
|
|
16772
|
+
if (allocation === void 0 || allocation === null) throw new Error("No allocation provided");
|
|
16774
16773
|
const amountInGwei = BigInt(Math.floor(Number(allocation) * ETHER_TO_GWEI));
|
|
16775
16774
|
const data = `0x${pubkey.slice(2)}${amountInGwei.toString(16).padStart(16, "0")}`;
|
|
16776
16775
|
const tx = yield signer.sendTransaction({
|
|
@@ -16887,8 +16886,7 @@ var EOA = class {
|
|
|
16887
16886
|
withdrawalContractAddress: chainConfig.EOA_WITHDRAWAL_CONTRACT.address,
|
|
16888
16887
|
requiredFee: validatedPayload.requiredFee,
|
|
16889
16888
|
chainId: this.chainId,
|
|
16890
|
-
signer: this.signer
|
|
16891
|
-
provider: this.provider
|
|
16889
|
+
signer: this.signer
|
|
16892
16890
|
});
|
|
16893
16891
|
});
|
|
16894
16892
|
}
|