Skip to content

Commit

Permalink
Aptos: encode the aptos key again
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Sep 10, 2024
1 parent f45df09 commit 9abfa6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/scripts/keystone/src/88_gen_ocr3_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,13 @@ func generateOCR3Config(nodeList string, configFile string, chainID int64, pubKe
onchainPubKeys := [][]byte{}
for _, n := range nca {
ethPubKey := common.HexToAddress(n.OCR2OnchainPublicKey)
aptosPubKey, err := hex.DecodeString(n.AptosOnchainPublicKey)
if err != nil {
panic(err)
}
pubKey, err := ocrcommon.MarshalMultichainPublicKey(map[string]types.OnchainPublicKey{
"evm": ethPubKey[:],
"evm": ethPubKey[:],
"aptos": aptosPubKey,
})
if err != nil {
panic(err)
Expand Down

0 comments on commit 9abfa6f

Please sign in to comment.