From bdca187aff2a6c016782086a229a23fffcb0ca4d Mon Sep 17 00:00:00 2001 From: Michael de Hoog Date: Thu, 10 Oct 2024 15:41:44 -1000 Subject: [PATCH] Fix ECDSA parsing of hex --- op-withdrawer/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op-withdrawer/main.go b/op-withdrawer/main.go index 1be9dde..9929d13 100644 --- a/op-withdrawer/main.go +++ b/op-withdrawer/main.go @@ -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 } @@ -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 }