Skip to content

Commit

Permalink
Log ocr3 config more extensively
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryNguyen5 committed Sep 24, 2024
1 parent 1638693 commit 5c811ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/scripts/keystone/src/01_deploy_contracts_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ func setOCR3Config(
ocrContract, err := ocr3_capability.NewOCR3Capability(loadedContracts.OCRContract, env.Ec)
PanicErr(err)
fmt.Println("Setting OCR3 contract config...")
fmt.Printf("Signers: %v\n", ocrConfig.Signers)
fmt.Printf("Transmitters: %v\n", ocrConfig.Transmitters)
fmt.Printf("F: %v\n", ocrConfig.F)
fmt.Printf("OnchainConfig: %v\n", ocrConfig.OnchainConfig)
fmt.Printf("OffchainConfigVersion: %v\n", ocrConfig.OffchainConfigVersion)
fmt.Printf("OffchainConfig: %v\n", ocrConfig.OffchainConfig)
tx, err := ocrContract.SetConfig(env.Owner,
ocrConfig.Signers,
ocrConfig.Transmitters,
Expand All @@ -172,7 +178,6 @@ func setOCR3Config(
)
PanicErr(err)
receipt := helpers.ConfirmTXMined(context.Background(), env.Ec, tx, env.ChainID)

// Write blocknumber of the transaction to the deployed contracts file
loadedContracts.SetConfigTxBlock = receipt.BlockNumber.Uint64()
WriteDeployedContracts(loadedContracts, artefacts)
Expand Down

0 comments on commit 5c811ee

Please sign in to comment.