@@ -36,7 +36,6 @@ import (
3636 flowGo "github.com/onflow/flow-go/model/flow"
3737
3838 "github.com/onflow/flowkit/v2"
39- "github.com/onflow/flowkit/v2/accounts"
4039 "github.com/onflow/flowkit/v2/config"
4140)
4241
@@ -284,31 +283,6 @@ func IsCoreContract(contractName string) bool {
284283 return false
285284}
286285
287- // ResolveAddressOrAccountName resolves a string that could be either an address or account name
288- func ResolveAddressOrAccountName (input string , state * flowkit.State ) (flow.Address , error ) {
289- address := flow .HexToAddress (input )
290-
291- if address .IsValid (flow .Mainnet ) || address .IsValid (flow .Testnet ) || address .IsValid (flow .Emulator ) {
292- return address , nil
293- }
294-
295- account , err := state .Accounts ().ByName (input )
296- if err != nil {
297- return flow .EmptyAddress , fmt .Errorf ("could not find account with name %s" , input )
298- }
299-
300- return account .Address , nil
301- }
302-
303- // GetSignerAccount resolves and returns the signer account from the state by name
304- func GetSignerAccount (state * flowkit.State , signerName string ) (* accounts.Account , error ) {
305- signer , err := state .Accounts ().ByName (signerName )
306- if err != nil {
307- return nil , fmt .Errorf ("failed to resolve signer account '%s': %w" , signerName , err )
308- }
309- return signer , nil
310- }
311-
312286// IsEmulatorRunning checks if the emulator is running on the given host
313287func IsEmulatorRunning (host string ) bool {
314288 conn , err := net .DialTimeout ("tcp" , host , 2 * time .Second )
0 commit comments