Skip to content

Commit

Permalink
feat: fix ClientFromJson() expecting network to be AccountId -> URL
Browse files Browse the repository at this point in the history
  • Loading branch information
janaakhterov committed Oct 27, 2020
1 parent e7237d0 commit 2626f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func ClientFromJSON(jsonBytes []byte) (*Client, error) {

var network map[string]AccountID = make(map[string]AccountID)

for id, url := range clientConfig.Network {
for url, id := range clientConfig.Network {
accountID, err := AccountIDFromString(id)
if err != nil {
return nil, err
Expand Down

0 comments on commit 2626f97

Please sign in to comment.