File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 ( / ^ 0 x / , '' ) ) . join ( '' ) ) as Hex ;
211212
212213 const contract = await getDashboardContract ( address ) ;
213214 const vault = await callReadMethod ( {
Original file line number Diff line number Diff 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 ( / ^ 0 x / , '' ) ) . join ( '' ) ) as Hex ;
387388 const contract = await getVaultHubContract ( ) ;
388389
389390 const confirmationMessage = `Are you sure you want to trigger the withdrawal of the validators
You can’t perform that action at this time.
0 commit comments