From c9428e4d38ec6f5d194d15d52139d923b2d65707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 9 Sep 2024 19:17:06 +0900 Subject: [PATCH] Aptos: encode the aptos key again --- core/scripts/keystone/src/88_gen_ocr3_config.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/scripts/keystone/src/88_gen_ocr3_config.go b/core/scripts/keystone/src/88_gen_ocr3_config.go index cbf5788d65f..f0a03ecafb3 100644 --- a/core/scripts/keystone/src/88_gen_ocr3_config.go +++ b/core/scripts/keystone/src/88_gen_ocr3_config.go @@ -110,8 +110,13 @@ func generateOCR3Config(nodeList string, configFile string, chainID int64, pubKe allPubKeys := map[string]any{} for _, n := range nca { ethPubKey := common.HexToAddress(n.OCR2OnchainPublicKey) + aptosPubKey, err := hex.DecodeString(n.AptosOnchainPublicKey) + if err != nil { + panic(err) + } pubKeys := map[string]types.OnchainPublicKey{ - "evm": ethPubKey[:], + "evm": ethPubKey[:], + "aptos": aptosPubKey, } // validate uniqueness of each individual key for _, key := range pubKeys {