Skip to content

Commit d3c427a

Browse files
committed
fix: trigger val pubkeys arg
1 parent 1485326 commit d3c427a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

programs/contracts/dashboard/write.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ dashboardWrite
207207
amounts: bigint[],
208208
recipient: Address,
209209
) => {
210-
const mergedPubkeys: Hex = pubkeys.join('') as Hex;
210+
const mergedPubkeys: Hex = ('0x' +
211+
pubkeys.map((pubkey) => pubkey.replace(/^0x/, '')).join('')) as Hex;
211212

212213
const contract = await getDashboardContract(address);
213214
const vault = await callReadMethod({

programs/contracts/hub/write.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ VaultHubWrite.command('trigger-validator-withdrawals')
383383
amounts: bigint[],
384384
recipient: Address,
385385
) => {
386-
const mergedPubkeys: Hex = pubkeys.join('') as Hex;
386+
const mergedPubkeys: Hex = ('0x' +
387+
pubkeys.map((pubkey) => pubkey.replace(/^0x/, '')).join('')) as Hex;
387388
const contract = await getVaultHubContract();
388389

389390
const confirmationMessage = `Are you sure you want to trigger the withdrawal of the validators

0 commit comments

Comments
 (0)