Skip to content

Commit

Permalink
Fix: Examples (#815)
Browse files Browse the repository at this point in the history
Signed-off-by: Emanuel Pargov <[email protected]>
  • Loading branch information
bamzedev authored Oct 10, 2023
1 parent 1a6ae16 commit 96cb3fe
Show file tree
Hide file tree
Showing 55 changed files with 1,955 additions and 2,598 deletions.
7 changes: 7 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@ func ClientForName(name string) (*Client, error) {
return ClientForPreviewnet(), nil
case string(NetworkNameMainnet):
return ClientForMainnet(), nil
case "local", "localhost":
network := make(map[string]AccountID)
network["127.0.0.1:50213"] = AccountID{Account: 3}
mirror := []string{"127.0.0.1:5600"}
client := ClientForNetwork(network)
client.SetMirrorNetwork(mirror)
return client, nil
default:
return &Client{}, fmt.Errorf("%q is not recognized as a valid Hedera _Network", name)
}
Expand Down
Loading

0 comments on commit 96cb3fe

Please sign in to comment.