@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.
- package/dist/browser/src/index.js +4 -6
- package/dist/browser/src/index.js.map +1 -1
- package/dist/cjs/src/index.js +4 -6
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/esm/src/index.js +4 -6
- 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/esm/src/index.js
CHANGED
|
@@ -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.
|
|
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"
|
|
@@ -16739,11 +16739,10 @@ function submitEOAWithdrawalRequest(_0) {
|
|
|
16739
16739
|
withdrawalContractAddress,
|
|
16740
16740
|
requiredFee,
|
|
16741
16741
|
chainId,
|
|
16742
|
-
signer
|
|
16743
|
-
provider
|
|
16742
|
+
signer
|
|
16744
16743
|
}) {
|
|
16745
16744
|
if (!withdrawalAddress) throw new Error("No withdrawal address provided");
|
|
16746
|
-
if (
|
|
16745
|
+
if (allocation === void 0 || allocation === null) throw new Error("No allocation provided");
|
|
16747
16746
|
const amountInGwei = BigInt(Math.floor(Number(allocation) * ETHER_TO_GWEI));
|
|
16748
16747
|
const data = `0x${pubkey.slice(2)}${amountInGwei.toString(16).padStart(16, "0")}`;
|
|
16749
16748
|
const tx = yield signer.sendTransaction({
|
|
@@ -16860,8 +16859,7 @@ var EOA = class {
|
|
|
16860
16859
|
withdrawalContractAddress: chainConfig.EOA_WITHDRAWAL_CONTRACT.address,
|
|
16861
16860
|
requiredFee: validatedPayload.requiredFee,
|
|
16862
16861
|
chainId: this.chainId,
|
|
16863
|
-
signer: this.signer
|
|
16864
|
-
provider: this.provider
|
|
16862
|
+
signer: this.signer
|
|
16865
16863
|
});
|
|
16866
16864
|
});
|
|
16867
16865
|
}
|