Skip to content

Commit 8c302f8

Browse files
authored
Merge pull request #5 from phantasma-io/dev
Update Unity Package
2 parents 97f7186 + 5d53ff7 commit 8c302f8

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
[v.1.0.10]
2+
3+
- Updating the packge version.
4+
- Fix issue when connecting to the wallet.
5+
16
[v.1.0.9]
27

38
- Updating the packge version.

Runtime/Phantasma/Scripts/PhantasmaLinkClient.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,16 @@ private void FetchAccount(Action<bool, string> callback)
179179
var value = child.GetString("value");
180180
var decimals = child.GetInt32("decimals");
181181
var ids_node = child.GetNode("ids");
182-
var ids_array = new string[ids_node.ChildCount];
183-
for (int i = 0; i < ids_node.ChildCount; i++)
182+
string[] ids_array = new string[0];
183+
if (ids_node != null)
184184
{
185-
ids_array[i] = ids_node.GetString(i);
185+
ids_array = new string[ids_node.ChildCount];
186+
for (int i = 0; i < ids_node.ChildCount; i++)
187+
{
188+
ids_array[i] = ids_node.GetString(i);
189+
}
186190
}
187-
191+
188192
var amount = BigInteger.Parse(value);
189193
_balanceMap[symbol] = new Balance(symbol, amount, decimals, ids_array);
190194
if ( ids_node.ChildCount > 0)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.phantasma.phantasmalinkclient",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"displayName": "Phantasma Unity SDK",
55
"description": "Phantasma Unity SDK, use to connect to the Phantasma Blockchain",
66
"unity": "2020.3",

0 commit comments

Comments
 (0)