From 9ec48c83c4d2ec633fce2558152cffd26379c94d Mon Sep 17 00:00:00 2001 From: Chase Fleming <1666730+chasefleming@users.noreply.github.com> Date: Tue, 14 May 2024 10:19:11 -0700 Subject: [PATCH] Remove account creation --- internal/v1_1/generator.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/v1_1/generator.go b/internal/v1_1/generator.go index 9b6faea..67a0dce 100644 --- a/internal/v1_1/generator.go +++ b/internal/v1_1/generator.go @@ -6,9 +6,6 @@ import ( "fmt" "strings" - "github.com/onflow/flow-go-sdk/crypto" - "github.com/onflow/flowkit/accounts" - "github.com/onflow/cadence/runtime/ast" "github.com/onflow/cadence/runtime/cmd" "github.com/onflow/cadence/runtime/common" @@ -57,12 +54,6 @@ func NewTemplateGenerator(contractInfos ContractInfos, logger output.Logger) (*G return nil, fmt.Errorf("could not initialize flowkit state %w", err) } - emulatorAccount, err := accounts.NewEmulatorAccount(loader, crypto.ECDSA_P256, crypto.SHA3_256, "") - if err != nil { - return nil, fmt.Errorf("could not create emulator account %w", err) - } - state.Accounts().AddOrUpdate(emulatorAccount) - testnetClient := flowkit.NewFlowkit(state, config.TestnetNetwork, gwt, logger) mainnetClient := flowkit.NewFlowkit(state, config.MainnetNetwork, gwm, logger) // add core contracts to deployed contracts