diff --git a/packages/brain/src/calls/exitValidators.ts b/packages/brain/src/calls/exitValidators.ts index f62a9fa4..2df143d7 100644 --- a/packages/brain/src/calls/exitValidators.ts +++ b/packages/brain/src/calls/exitValidators.ts @@ -122,7 +122,7 @@ async function _getExitValidators( epoch: currentEpoch.toString(), validator_index: validatorIndex.index, }, - signature: validatorSignature, + signature: validatorSignature.signature, }); } diff --git a/packages/brain/src/modules/apiClients/web3signer/index.ts b/packages/brain/src/modules/apiClients/web3signer/index.ts index bb22c95d..bf427da6 100644 --- a/packages/brain/src/modules/apiClients/web3signer/index.ts +++ b/packages/brain/src/modules/apiClients/web3signer/index.ts @@ -7,6 +7,7 @@ import { Web3signerHealthcheckResponse, prefix0xPubkey, Web3SignerPostSignvoluntaryexitRequest, + Web3SignerPostSignvoluntaryexitResponse, } from "@stakingbrain/common"; import { StandardApi } from "../index.js"; import path from "node:path"; @@ -43,7 +44,7 @@ export class Web3SignerApi extends StandardApi { }: { signerVoluntaryExitRequest: Web3SignerPostSignvoluntaryexitRequest; pubkey: string; - }): Promise { + }): Promise { try { return await this.request( "POST", diff --git a/packages/common/src/types/api/web3signer/types.ts b/packages/common/src/types/api/web3signer/types.ts index a6a35924..14cad5c1 100644 --- a/packages/common/src/types/api/web3signer/types.ts +++ b/packages/common/src/types/api/web3signer/types.ts @@ -53,3 +53,7 @@ export interface Web3SignerPostSignvoluntaryexitRequest { validator_index: string; }; } + +export interface Web3SignerPostSignvoluntaryexitResponse { + signature: string; +} \ No newline at end of file