Skip to content

Commit

Permalink
fix(aptos): use vid as publickey
Browse files Browse the repository at this point in the history
  • Loading branch information
imsk17 committed Dec 19, 2024
1 parent 82b0cb4 commit c147375
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/handler/chains/aptos/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ export function aptosHandler({
staking,
validatorAddress,
}: AptosHandlerParams): THandler {
const pubKeyHex = Buffer.from(signer.publicKey.toUint8Array()).toString(
"hex",
);
const address = signer.accountAddress.toString();
return {
publicKey: signer.publicKey.bcsToHex().toStringWithoutPrefix(),
publicKey: `${pubKeyHex}|${address}`,
pollForLockEvents: async (_, cb, cbLe) => {
serverLinkHandler
? pollForLockEvents(chainIdent, cbLe, cb, em, serverLinkHandler, logger)
Expand Down

0 comments on commit c147375

Please sign in to comment.