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 authored and smickovskid committed Sep 24, 2024
1 parent 0f78978 commit 491a121
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 @@ -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 {
Expand Down

0 comments on commit 491a121

Please sign in to comment.