Skip to content

Commit f445ddb

Browse files
Fix/upgrade to new api (#91)
* Update LoginPanel UI appearance * Register session with new api * Modify intent sender such that we can sign messages * Fix sending transaction intents. Note: I've had to create WonkyIntentPayload as the responses I'm getting are incorrect; once this is fixed, I should replace all instances of WonkyIntentPayload with IntentPayload * Fix session management. Remove code that is no longer needed * Update package version * Update LoginScene for DemoTowerDefenseGame so that it uses the newly branded LoginPanel * Cleaner logic on when sessionId gets generated * Fix typos in strings and comments * Don't throw a null reference exception if SequenceConnector is destroyed before wallet is created * Replace WonkyIntentPayload with more generic JObject
1 parent 03554d7 commit f445ddb

File tree

103 files changed

+5804
-8148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+5804
-8148
lines changed

Assets/Samples~/DemoScene/Demo.unity

Lines changed: 519 additions & 3515 deletions
Large diffs are not rendered by default.

Assets/Samples~/DemoTowerDefenseGame/Scenes/LoginScene.unity

Lines changed: 3794 additions & 3990 deletions
Large diffs are not rendered by default.

Assets/Samples~/DemoTowerDefenseGame/Scripts/LoginSceneUIManager.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
using UnityEngine.UI;
99

1010
public class LoginSceneUIManager : MonoBehaviour
11-
{
12-
[SerializeField] private Button _playButton;
13-
11+
{
1412
private LoginPanel _loginPanel;
1513
private void Awake()
1614
{

Assets/Samples~/Scripts/SequenceConnector.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ private void OnWaaSWalletCreated(WaaSWallet wallet)
4949

5050
private void OnDestroy()
5151
{
52+
if (Wallet == null) return;
5253
Wallet.OnSendTransactionComplete -= OnSendTransactionCompleteHandler;
5354
Wallet.OnSendTransactionFailed -= OnSendTransactionFailedHandler;
5455
Wallet.OnSignMessageComplete -= OnSignMessageCompleteHandler;

0 commit comments

Comments
 (0)