From b658c2121714d87142e3714444a7745f4459caf0 Mon Sep 17 00:00:00 2001 From: HenryNguyen5 <6404866+HenryNguyen5@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:31:51 -0700 Subject: [PATCH] Fix OCR3 digest comparison --- core/scripts/keystone/src/88_ocr_helpers.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/scripts/keystone/src/88_ocr_helpers.go b/core/scripts/keystone/src/88_ocr_helpers.go index e4889b952ef..f27d161ecb6 100644 --- a/core/scripts/keystone/src/88_ocr_helpers.go +++ b/core/scripts/keystone/src/88_ocr_helpers.go @@ -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" ) @@ -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), @@ -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 { @@ -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 }