Skip to content

Commit

Permalink
logging fix; rm dead code (#15662)
Browse files Browse the repository at this point in the history
  • Loading branch information
krehermann authored Dec 13, 2024
1 parent 000df4f commit ea2d4f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion deployment/keystone/changeset/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestSetupTestEnv(t *testing.T) {
NumChains: 3,
UseMCMS: useMCMS,
})
t.Run(fmt.Sprintf("set up test env using MCMS: %T", useMCMS), func(t *testing.T) {
t.Run(fmt.Sprintf("set up test env using MCMS: %t", useMCMS), func(t *testing.T) {
require.NotNil(t, te.Env.ExistingAddresses)
require.Len(t, te.Env.Chains, 3)
require.NotEmpty(t, te.RegistrySelector)
Expand Down
16 changes: 4 additions & 12 deletions deployment/keystone/changeset/update_don_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,10 @@ func TestUpdateDon(t *testing.T) {
csOut, err := changeset.UpdateDon(te.Env, &cfg)
require.NoError(t, err)

if true {
require.Len(t, csOut.Proposals, 1)
require.Len(t, csOut.Proposals[0].Transactions, 1) // append node capabilties cs, update don
require.Len(t, csOut.Proposals[0].Transactions[0].Batch, 3) // add capabilities, update nodes, update don
require.Nil(t, csOut.AddressBook)
} else {
require.Len(t, csOut.Proposals, 1)
require.Len(t, csOut.Proposals[0].Transactions, 2) // append node capabilties cs, update don
require.Len(t, csOut.Proposals[0].Transactions[0].Batch, 2) // add capabilities, update nodes
require.Len(t, csOut.Proposals[0].Transactions[1].Batch, 1) // update don
require.Nil(t, csOut.AddressBook)
}
require.Len(t, csOut.Proposals, 1)
require.Len(t, csOut.Proposals[0].Transactions, 1) // append node capabilties cs, update don
require.Len(t, csOut.Proposals[0].Transactions[0].Batch, 3) // add capabilities, update nodes, update don
require.Nil(t, csOut.AddressBook)

// now apply the changeset such that the proposal is signed and execed
contracts := te.ContractSets()[te.RegistrySelector]
Expand Down
2 changes: 1 addition & 1 deletion deployment/keystone/ocr3config.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func configureOCR3contract(req configureOCR3Request) (*configureOCR3Response, er
)
if err != nil {
err = DecodeErr(kocr3.OCR3CapabilityABI, err)
return nil, fmt.Errorf("failed to call SetConfig for OCR3 contract %s using mcms: %T: %w", req.contract.Address().String(), req.useMCMS, err)
return nil, fmt.Errorf("failed to call SetConfig for OCR3 contract %s using mcms: %t: %w", req.contract.Address().String(), req.useMCMS, err)
}

var ops *timelock.BatchChainOperation
Expand Down

0 comments on commit ea2d4f7

Please sign in to comment.