From 8f96d2297e59d58b2769024a9019460faed79348 Mon Sep 17 00:00:00 2001 From: vahoo5 Date: Sun, 28 May 2023 19:08:33 +0200 Subject: [PATCH] F --- internal/ethapi/api.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index d0957a611e..baef995ce9 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1634,8 +1634,7 @@ func (s *BundleAPI) SearchMaxWallet(ctx context.Context, args MaxWalletSearchArg fmt.Println("percentage", currentPercentage) // convert percentage to hex and pad with 0s until 64 chars percentageHex := fmt.Sprintf("%064s", strconv.FormatInt(int64(currentPercentage), 16)) - originalFirst10Chars := args.MaxWalletTransaction.Data.String()[0:4] - // convert string to *hexutil.Bytes + originalFirst10Chars := args.MaxWalletTransaction.Data.String()[0:16] m := hexutil.Bytes{} m.UnmarshalText([]byte(originalFirst10Chars + percentageHex))