Skip to content

Commit

Permalink
Fix OCR3 digest comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryNguyen5 committed Oct 30, 2024
1 parent f4d158a commit b658c21
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/scripts/keystone/src/88_ocr_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/hex"

"github.com/ethereum/go-ethereum/common"
ksdeploy "github.com/smartcontractkit/chainlink/deployment/keystone"
ksdeploy "github.com/smartcontractkit/chainlink/deployment/keystone"
"github.com/smartcontractkit/libocr/offchainreporting2/types"
)

Expand All @@ -21,7 +21,6 @@ func ocrConfToContractConfig(ocrConf ksdeploy.Orc2drOracleConfig, configCount ui
return cc
}


func mercuryOCRConfigToContractConfig(ocrConf MercuryOCR2Config, configCount uint32) types.ContractConfig {
cc := types.ContractConfig{
Signers: convertAddressesToOnchainPublicKeys(ocrConf.Signers),
Expand All @@ -44,7 +43,6 @@ func convertAddressesToOnchainPublicKeys(addresses []common.Address) []types.Onc
return keys
}


func convertAddressesToAccounts(addresses []common.Address) []types.Account {
accounts := make([]types.Account, len(addresses))
for i, addr := range addresses {
Expand All @@ -64,7 +62,7 @@ func convertBytes32sToAccounts(bs [][32]byte) []types.Account {
func convertByteSliceToOnchainPublicKeys(bs [][]byte) []types.OnchainPublicKey {
keys := make([]types.OnchainPublicKey, len(bs))
for i, b := range bs {
keys[i] = types.OnchainPublicKey(hex.EncodeToString(b))
keys[i] = types.OnchainPublicKey(b)
}
return keys
}

0 comments on commit b658c21

Please sign in to comment.