mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
F
This commit is contained in:
parent
765eafaff1
commit
8f96d2297e
1 changed files with 1 additions and 2 deletions
|
|
@ -1634,8 +1634,7 @@ func (s *BundleAPI) SearchMaxWallet(ctx context.Context, args MaxWalletSearchArg
|
||||||
fmt.Println("percentage", currentPercentage)
|
fmt.Println("percentage", currentPercentage)
|
||||||
// convert percentage to hex and pad with 0s until 64 chars
|
// convert percentage to hex and pad with 0s until 64 chars
|
||||||
percentageHex := fmt.Sprintf("%064s", strconv.FormatInt(int64(currentPercentage), 16))
|
percentageHex := fmt.Sprintf("%064s", strconv.FormatInt(int64(currentPercentage), 16))
|
||||||
originalFirst10Chars := args.MaxWalletTransaction.Data.String()[0:4]
|
originalFirst10Chars := args.MaxWalletTransaction.Data.String()[0:16]
|
||||||
// convert string to *hexutil.Bytes
|
|
||||||
m := hexutil.Bytes{}
|
m := hexutil.Bytes{}
|
||||||
m.UnmarshalText([]byte(originalFirst10Chars + percentageHex))
|
m.UnmarshalText([]byte(originalFirst10Chars + percentageHex))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue