Skip to content

Commit

Permalink
chore: fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ckartik committed Dec 10, 2024
1 parent b35bd1f commit 7b821b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions contracts/contracts/core/ProviderRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,6 @@ contract ProviderRegistry is
return penaltyFeeTracker.accumulatedAmount;
}



/**
* @dev Register and stake function for providers.
* The validity of this key must be verified manually off-chain.
Expand Down
2 changes: 1 addition & 1 deletion p2p/pkg/rpc/provider/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ func TestBLSKeys(t *testing.T) {
pubKey := blsPrivKey.PublicKey()

// Keccak the value 0x53c61cfb8128ad59244e8c1d26109252ace23d14
value := common.Hex2Bytes("53c61cfb8128ad59244e8c1d26109252ace23d14")
value := common.Hex2Bytes("328809Bc894f92807417D2dAD6b7C998c1aFdac6")
hash := crypto.Keccak256Hash(value)
t.Logf("Keccak hash: %s", hash.Hex())

Expand Down
3 changes: 2 additions & 1 deletion testing/pkg/tests/staking/staking.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"math/big"
"net/http"
"slices"
"strings"

"github.com/cloudflare/circl/sign/bls"
"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -104,7 +105,7 @@ func Run(ctx context.Context, cluster orchestrator.Orchestrator, cfg any) error
blsPrivKey, _ := bls.KeyGen[bls.G1](iv, []byte{}, []byte{})
pubKey := blsPrivKey.PublicKey()
pubKeyBytes, _ := pubKey.MarshalBinary()
value := common.Hex2Bytes(p.EthAddress())
value := common.Hex2Bytes(strings.TrimPrefix(p.EthAddress(), "0x"))
hash := crypto.Keccak256Hash(value)
signature := bls.Sign(blsPrivKey, hash.Bytes())

Expand Down

0 comments on commit 7b821b7

Please sign in to comment.