Skip to content

Commit

Permalink
Logging and OCR2 ops
Browse files Browse the repository at this point in the history
  • Loading branch information
chray-zhang committed Oct 25, 2024
1 parent 0e51548 commit 1f707fc
Show file tree
Hide file tree
Showing 2 changed files with 313 additions and 12 deletions.
18 changes: 16 additions & 2 deletions integration-tests/common/gauntlet_plus_plus_common.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package common

import (
"encoding/json"
"os"
)

Expand All @@ -18,8 +19,7 @@ func (m *OCRv2TestState) deployAccessControllerWithGpp() error {
}

func (m *OCRv2TestState) declareLinkToken() error {
var err error
err = m.Clients.GauntletPPClient.DeclareLinkTokenContract()
err := m.Clients.GauntletPPClient.DeclareLinkTokenContract()
if err != nil {
return err
}
Expand All @@ -41,3 +41,17 @@ func (m *OCRv2TestState) deployLinkTokenWithGpp() error {
}
return nil
}

func (m *OCRv2TestState) setConfigDetailsWithGpp(ocrAddress string) error {
cfg, err := m.LoadOCR2Config()
if err != nil {
return err
}
var parsedConfig []byte
parsedConfig, err = json.Marshal(cfg)
if err != nil {
return err
}
_, err = m.Clients.GauntletPPClient.SetConfigDetails(string(parsedConfig), ocrAddress)
return err
}
Loading

0 comments on commit 1f707fc

Please sign in to comment.