Skip to content

Commit

Permalink
Fixed WebGL GetActiveAccountAddress function; (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-karuna authored Jul 28, 2023
1 parent 10a7da9 commit 0fb40ac
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).



## [2.0.2] - 2023-07-28
### Fixed
- WebGL `GetActiveAccountAddress` function.



## [2.0.1] - 2023-07-28
### Fixed
- NftApi sample bug with incorrect key error.
Expand Down Expand Up @@ -127,7 +134,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added auto releases with GH actions


[unreleased]: https://github.com/trilitech/tezos-unity-sdk/compare/2.0.1...HEAD
[unreleased]: https://github.com/trilitech/tezos-unity-sdk/compare/2.0.2...HEAD
[2.0.2]: https://github.com/trilitech/tezos-unity-sdk/releases/tag/2.0.2
[2.0.1]: https://github.com/trilitech/tezos-unity-sdk/releases/tag/2.0.1
[2.0.0]: https://github.com/trilitech/tezos-unity-sdk/releases/tag/2.0.0
[1.5.1]: https://github.com/trilitech/tezos-unity-sdk/releases/tag/1.5.1
Expand Down
2 changes: 1 addition & 1 deletion WebGLFrontend/output/StreamingAssets/webgl-frontend.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions WebGLFrontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion WebGLFrontend/src/WalletProviders/Beacon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class BeaconWallet extends BaseWallet implements Wallet {
}

GetActiveAccountAddress() {
return this.activePermissions.accountInfo.address;
return this.activePermissions?.accountInfo.address ?? "";
}

async SendContract(
Expand Down
2 changes: 1 addition & 1 deletion WebGLFrontend/src/WalletProviders/Kukai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class KukaiWallet extends BaseWallet implements Wallet {
}

GetActiveAccountAddress() {
return this.kukaiEmbed.user.pkh;
return this.kukaiEmbed?.user?.pkh ?? "";
}

async SendContract(
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.trilitech.tezos-unity-sdk",
"version": "2.0.1",
"version": "2.0.2",
"unity": "2021.3",
"displayName": "Tezos Unity SDK",
"description": "Unity SDK for Tezos",
Expand Down

0 comments on commit 0fb40ac

Please sign in to comment.