Skip to content

Commit

Permalink
Fix ECDSA parsing of hex
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Oct 11, 2024
1 parent bb3e9e2 commit bdca187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions op-withdrawer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func Main(cliCtx *cli.Context) error {
l1URL := cliCtx.String(L1URLFlag.Name)
l2URL := cliCtx.String(L2URLFlag.Name)
portalAddress := common.HexToAddress(cliCtx.String(PortalAddressFlag.Name))
privateKey, err := crypto.HexToECDSA(cliCtx.String(PrivateKeyFlag.Name))
privateKey, err := crypto.ToECDSA(common.FromHex(cliCtx.String(PrivateKeyFlag.Name)))
if err != nil {
return err
}
Expand Down Expand Up @@ -137,7 +137,7 @@ func Main(cliCtx *cli.Context) error {
return err
}

fmt.Printf("Withdrawal proved: %s\n", receipt.TxHash)
fmt.Printf("Withdrawal proved and finalized: %s\n", receipt.TxHash)

return nil
}
Expand Down

0 comments on commit bdca187

Please sign in to comment.