Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devsvcs-514: update debugging script #14502

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions core/scripts/chaincli/handler/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ import (
const (
ConditionTrigger uint8 = iota
LogTrigger
expectedTypeAndVersion = "KeeperRegistry 2.1.0"
expectedVersion21 = "KeeperRegistry 2.1.0"
expectedVersion23 = "AutomationRegistry 2.3.0"
)

var mercuryPacker = mercury.NewAbiPacker()
Expand Down Expand Up @@ -85,8 +86,8 @@ func (k *Keeper) Debug(ctx context.Context, args []string) {
if err != nil {
failCheckConfig("failed to get typeAndVersion: make sure your registry contract address and archive node are valid", err)
}
if typeAndVersion != expectedTypeAndVersion {
failCheckConfig(fmt.Sprintf("invalid registry contract: this command can only debug %s, got: %s", expectedTypeAndVersion, typeAndVersion), nil)
if typeAndVersion != expectedVersion21 && typeAndVersion != expectedVersion23 {
failCheckConfig(fmt.Sprintf("invalid registry contract: this command can only debug %s or %s, got: %s", expectedVersion21, expectedVersion23, typeAndVersion), nil)
}
// get upkeepID from command args
upkeepID := big.NewInt(0)
Expand Down
Loading