From dfee08f1c4b83001e58155508cca3b6282fb2b42 Mon Sep 17 00:00:00 2001 From: Brandon Chatham Date: Mon, 2 Dec 2024 17:26:32 -0800 Subject: [PATCH] Removing unused class and updating tests to use correct flag name. --- pkg/admin/add.go | 33 ----------------------------- pkg/user/appointee/can_call_test.go | 12 +++++------ 2 files changed, 6 insertions(+), 39 deletions(-) delete mode 100644 pkg/admin/add.go diff --git a/pkg/admin/add.go b/pkg/admin/add.go deleted file mode 100644 index c22d0e35..00000000 --- a/pkg/admin/add.go +++ /dev/null @@ -1,33 +0,0 @@ -package admin - -import ( - "github.com/Layr-Labs/eigenlayer-cli/pkg/internal/common/flags" - "github.com/Layr-Labs/eigenlayer-cli/pkg/telemetry" - "github.com/Layr-Labs/eigenlayer-cli/pkg/utils" - - "github.com/urfave/cli/v2" -) - -func AddCmd(p utils.Prompter) *cli.Command { - addAdminCmd := &cli.Command{ - Name: "addAdmin", - Usage: "Add an Admin", - UsageText: "", - Description: ` - addAdmin command gives a new user admin privileges. - `, - After: telemetry.AfterRunAction(), - Action: func(cCtx *cli.Context) error { - return Add(cCtx, p) - }, - Flags: []cli.Flag{ - &flags.VerboseFlag, - }, - } - - return addAdminCmd -} - -func Add(cCtx *cli.Context, p utils.Prompter) error { - -} diff --git a/pkg/user/appointee/can_call_test.go b/pkg/user/appointee/can_call_test.go index 991f1bc2..e1256686 100644 --- a/pkg/user/appointee/can_call_test.go +++ b/pkg/user/appointee/can_call_test.go @@ -55,9 +55,9 @@ func TestCanCallCmd_Success(t *testing.T) { args := []string{ "TestCanCallCmd_Success", "can-call", - "--user-address", "0x1234567890abcdef1234567890abcdef12345678", + "--account-address", "0x1234567890abcdef1234567890abcdef12345678", "--caller-address", "0x9876543210fedcba9876543210fedcba98765432", - "--target", "0xabcdef1234567890abcdef1234567890abcdef12", + "--target-address", "0xabcdef1234567890abcdef1234567890abcdef12", "--selector", "test", "--network", "holesky", } @@ -78,9 +78,9 @@ func TestCanCallCmd_UserCanCallError(t *testing.T) { args := []string{ "TestCanCallCmd_UserCanCallError", "can-call", - "--user-address", "0x1234567890abcdef1234567890abcdef12345678", + "--account-address", "0x1234567890abcdef1234567890abcdef12345678", "--caller-address", "0x9876543210fedcba9876543210fedcba98765432", - "--target", "0xabcdef1234567890abcdef1234567890abcdef12", + "--target-address", "0xabcdef1234567890abcdef1234567890abcdef12", "--selector", "test", } @@ -100,9 +100,9 @@ func TestCanCallCmd_InvalidSelector(t *testing.T) { args := []string{ "TestCanCallCmd_InvalidSelector", "can-call", - "--user-address", "0x1234567890abcdef1234567890abcdef12345678", + "--account-address", "0x1234567890abcdef1234567890abcdef12345678", "--caller-address", "0x9876543210fedcba9876543210fedcba98765432", - "--target", "0xabcdef1234567890abcdef1234567890abcdef12", + "--target-address", "0xabcdef1234567890abcdef1234567890abcdef12", "--selector", "too-long", }