Skip to content

Commit

Permalink
Merge pull request #5 from phantasma-io/dev
Browse files Browse the repository at this point in the history
Update Unity Package
  • Loading branch information
TeknoPT authored Apr 20, 2023
2 parents 97f7186 + 5d53ff7 commit 8c302f8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[v.1.0.10]

- Updating the packge version.
- Fix issue when connecting to the wallet.

[v.1.0.9]

- Updating the packge version.
Expand Down
12 changes: 8 additions & 4 deletions Runtime/Phantasma/Scripts/PhantasmaLinkClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,16 @@ private void FetchAccount(Action<bool, string> callback)
var value = child.GetString("value");
var decimals = child.GetInt32("decimals");
var ids_node = child.GetNode("ids");
var ids_array = new string[ids_node.ChildCount];
for (int i = 0; i < ids_node.ChildCount; i++)
string[] ids_array = new string[0];
if (ids_node != null)
{
ids_array[i] = ids_node.GetString(i);
ids_array = new string[ids_node.ChildCount];
for (int i = 0; i < ids_node.ChildCount; i++)
{
ids_array[i] = ids_node.GetString(i);
}
}
var amount = BigInteger.Parse(value);
_balanceMap[symbol] = new Balance(symbol, amount, decimals, ids_array);
if ( ids_node.ChildCount > 0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.phantasma.phantasmalinkclient",
"version": "1.0.9",
"version": "1.0.10",
"displayName": "Phantasma Unity SDK",
"description": "Phantasma Unity SDK, use to connect to the Phantasma Blockchain",
"unity": "2020.3",
Expand Down

0 comments on commit 8c302f8

Please sign in to comment.