Skip to content

Commit

Permalink
Merge pull request #247 from dappnode/diego/fix-exit
Browse files Browse the repository at this point in the history
Fix wrong parsing in exit
  • Loading branch information
pablomendezroyo authored Jul 6, 2023
2 parents b64fa63 + d594831 commit 0a1632b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/brain/src/calls/exitValidators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async function _getExitValidators(
epoch: currentEpoch.toString(),
validator_index: validatorIndex.index,
},
signature: validatorSignature,
signature: validatorSignature.signature,
});
}

Expand Down
3 changes: 2 additions & 1 deletion packages/brain/src/modules/apiClients/web3signer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
Web3signerHealthcheckResponse,
prefix0xPubkey,
Web3SignerPostSignvoluntaryexitRequest,
Web3SignerPostSignvoluntaryexitResponse,
} from "@stakingbrain/common";
import { StandardApi } from "../index.js";
import path from "node:path";
Expand Down Expand Up @@ -43,7 +44,7 @@ export class Web3SignerApi extends StandardApi {
}: {
signerVoluntaryExitRequest: Web3SignerPostSignvoluntaryexitRequest;
pubkey: string;
}): Promise<string> {
}): Promise<Web3SignerPostSignvoluntaryexitResponse> {
try {
return await this.request(
"POST",
Expand Down
4 changes: 4 additions & 0 deletions packages/common/src/types/api/web3signer/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ export interface Web3SignerPostSignvoluntaryexitRequest {
validator_index: string;
};
}

export interface Web3SignerPostSignvoluntaryexitResponse {
signature: string;
}

0 comments on commit 0a1632b

Please sign in to comment.