@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.
@@ -89,7 +89,7 @@ import { v4 as uuidv4 } from "uuid";
89
89
  // package.json
90
90
  var package_default = {
91
91
  name: "@obolnetwork/obol-sdk",
92
- version: "2.11.5-rc.2",
92
+ version: "2.11.6",
93
93
  description: "A package for creating Distributed Validators using the Obol API.",
94
94
  bugs: {
95
95
  url: "https://github.com/obolnetwork/obol-sdk/issues"
@@ -12666,7 +12666,13 @@ var eoaDepositPayloadSchema = {
12666
12666
  };
12667
12667
 
12668
12668
  // src/splits/splitHelpers.ts
12669
- import { Contract, Interface, parseEther, ZeroAddress as ZeroAddress2 } from "ethers";
12669
+ import {
12670
+ Contract,
12671
+ Interface,
12672
+ parseEther,
12673
+ ZeroAddress as ZeroAddress2,
12674
+ getAddress as toChecksumAddress
12675
+ } from "ethers";
12670
12676
 
12671
12677
  // src/abi/OWR.ts
12672
12678
  var OWRFactoryContract = {
@@ -15233,7 +15239,7 @@ var deployOVMContract = (_0) => __async(null, [_0], function* ({
15233
15239
  throw new Error("Failed to extract OVM address from transaction logs");
15234
15240
  }
15235
15241
  const ovmAddress = "0x" + ovmAddressLog.slice(26, 66);
15236
- return ovmAddress;
15242
+ return toChecksumAddress(ovmAddress);
15237
15243
  } catch (error) {
15238
15244
  throw new Error(
15239
15245
  `Failed to deploy OVM contract: ${(_c = error.message) != null ? _c : "OVM deployment failed"}`
@@ -16733,11 +16739,10 @@ function submitEOAWithdrawalRequest(_0) {
16733
16739
  withdrawalContractAddress,
16734
16740
  requiredFee,
16735
16741
  chainId,
16736
- signer,
16737
- provider
16742
+ signer
16738
16743
  }) {
16739
16744
  if (!withdrawalAddress) throw new Error("No withdrawal address provided");
16740
- if (!allocation) throw new Error("No allocation provided");
16745
+ if (allocation === void 0 || allocation === null) throw new Error("No allocation provided");
16741
16746
  const amountInGwei = BigInt(Math.floor(Number(allocation) * ETHER_TO_GWEI));
16742
16747
  const data = `0x${pubkey.slice(2)}${amountInGwei.toString(16).padStart(16, "0")}`;
16743
16748
  const tx = yield signer.sendTransaction({
@@ -16854,8 +16859,7 @@ var EOA = class {
16854
16859
  withdrawalContractAddress: chainConfig.EOA_WITHDRAWAL_CONTRACT.address,
16855
16860
  requiredFee: validatedPayload.requiredFee,
16856
16861
  chainId: this.chainId,
16857
- signer: this.signer,
16858
- provider: this.provider
16862
+ signer: this.signer
16859
16863
  });
16860
16864
  });
16861
16865
  }