Skip to content

Commit

Permalink
chore: correctly format address
Browse files Browse the repository at this point in the history
  • Loading branch information
ckartik committed Dec 10, 2024
1 parent 2e6437d commit 754660e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/pkg/tests/staking/staking.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"math/big"
"net/http"
"slices"
"strings"

"github.com/cloudflare/circl/sign/bls"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
providerregistry "github.com/primev/mev-commit/contracts-abi/clients/ProviderRegistry"
providerapiv1 "github.com/primev/mev-commit/p2p/gen/go/providerapi/v1"
Expand Down Expand Up @@ -98,7 +98,7 @@ func Run(ctx context.Context, cluster orchestrator.Orchestrator, cfg any) error

stakeAmount := big.NewInt(0).Mul(amount, big.NewInt(10))
// Generate a BLS signature to verify
message := []byte(strings.ToLower(strings.TrimPrefix(p.EthAddress(), "0x")))
message := common.HexToAddress(p.EthAddress()).Bytes()
hashedMessage := crypto.Keccak256(message)
ikm := make([]byte, 32)
privateKey, err := bls.KeyGen[bls.G1](ikm, nil, nil)
Expand Down

0 comments on commit 754660e

Please sign in to comment.