@obolnetwork/obol-sdk 2.11.5 → 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.
@@ -92,7 +92,7 @@ import { v4 as uuidv4 } from "uuid";
92
92
  // package.json
93
93
  var package_default = {
94
94
  name: "@obolnetwork/obol-sdk",
95
- version: "2.11.5",
95
+ version: "2.11.6",
96
96
  description: "A package for creating Distributed Validators using the Obol API.",
97
97
  bugs: {
98
98
  url: "https://github.com/obolnetwork/obol-sdk/issues"
@@ -17550,11 +17550,10 @@ function submitEOAWithdrawalRequest(_0) {
17550
17550
  withdrawalContractAddress,
17551
17551
  requiredFee,
17552
17552
  chainId,
17553
- signer,
17554
- provider
17553
+ signer
17555
17554
  }) {
17556
17555
  if (!withdrawalAddress) throw new Error("No withdrawal address provided");
17557
- if (!allocation) throw new Error("No allocation provided");
17556
+ if (allocation === void 0 || allocation === null) throw new Error("No allocation provided");
17558
17557
  const amountInGwei = BigInt(Math.floor(Number(allocation) * ETHER_TO_GWEI));
17559
17558
  const data = `0x${pubkey.slice(2)}${amountInGwei.toString(16).padStart(16, "0")}`;
17560
17559
  const tx = yield signer.sendTransaction({
@@ -17671,8 +17670,7 @@ var EOA = class {
17671
17670
  withdrawalContractAddress: chainConfig.EOA_WITHDRAWAL_CONTRACT.address,
17672
17671
  requiredFee: validatedPayload.requiredFee,
17673
17672
  chainId: this.chainId,
17674
- signer: this.signer,
17675
- provider: this.provider
17673
+ signer: this.signer
17676
17674
  });
17677
17675
  });
17678
17676
  }