Skip to content

Commit 0fb40ac

Browse files
authored
Fixed WebGL GetActiveAccountAddress function; (#120)
1 parent 10a7da9 commit 0fb40ac

File tree

6 files changed

+20
-12
lines changed

6 files changed

+20
-12
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8+
9+
## [2.0.2] - 2023-07-28
10+
### Fixed
11+
- WebGL `GetActiveAccountAddress` function.
12+
13+
14+
815
## [2.0.1] - 2023-07-28
916
### Fixed
1017
- NftApi sample bug with incorrect key error.
@@ -127,7 +134,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
127134
- Added auto releases with GH actions
128135

129136

130-
[unreleased]: https://github.com/trilitech/tezos-unity-sdk/compare/2.0.1...HEAD
137+
[unreleased]: https://github.com/trilitech/tezos-unity-sdk/compare/2.0.2...HEAD
138+
[2.0.2]: https://github.com/trilitech/tezos-unity-sdk/releases/tag/2.0.2
131139
[2.0.1]: https://github.com/trilitech/tezos-unity-sdk/releases/tag/2.0.1
132140
[2.0.0]: https://github.com/trilitech/tezos-unity-sdk/releases/tag/2.0.0
133141
[1.5.1]: https://github.com/trilitech/tezos-unity-sdk/releases/tag/1.5.1

WebGLFrontend/output/StreamingAssets/webgl-frontend.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WebGLFrontend/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WebGLFrontend/src/WalletProviders/Beacon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class BeaconWallet extends BaseWallet implements Wallet {
5252
}
5353

5454
GetActiveAccountAddress() {
55-
return this.activePermissions.accountInfo.address;
55+
return this.activePermissions?.accountInfo.address ?? "";
5656
}
5757

5858
async SendContract(

WebGLFrontend/src/WalletProviders/Kukai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class KukaiWallet extends BaseWallet implements Wallet {
4040
}
4141

4242
GetActiveAccountAddress() {
43-
return this.kukaiEmbed.user.pkh;
43+
return this.kukaiEmbed?.user?.pkh ?? "";
4444
}
4545

4646
async SendContract(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.trilitech.tezos-unity-sdk",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"unity": "2021.3",
55
"displayName": "Tezos Unity SDK",
66
"description": "Unity SDK for Tezos",

0 commit comments

Comments
 (0)