Skip to content

Commit

Permalink
167: Fix for Client’s implementation of setNetwork() method.
Browse files Browse the repository at this point in the history
Signed-off-by: Deyan Zhekov <[email protected]>
  • Loading branch information
deyanzz committed Sep 28, 2023
1 parent f3423a2 commit 505581b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/main/src/Client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void Client::close()
//-----
Client& Client::setNetwork(const std::unordered_map<std::string, AccountId>& networkMap)
{
mImpl->mNetwork = internal::Network::forNetwork(networkMap);
mImpl->mNetwork = std::make_shared<internal::Network>(internal::Network::forNetwork(networkMap));
mImpl->mMirrorNetwork = nullptr;
return *this;
}
Expand Down

0 comments on commit 505581b

Please sign in to comment.