diff --git a/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts/HyperPlayWebGLProvider.cs b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts/HyperPlayWebGLProvider.cs index 8e2ed3ed7..8abc568f3 100644 --- a/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts/HyperPlayWebGLProvider.cs +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts/HyperPlayWebGLProvider.cs @@ -20,7 +20,7 @@ public class HyperPlayWebGLProvider : HyperPlayProvider private readonly IChainConfig _chainConfig; private readonly ChainRegistryProvider _chainRegistryProvider; private readonly EthereumWindowController _ethereumController; - + /// /// Initializes a new instance of the class. /// @@ -37,7 +37,7 @@ public HyperPlayWebGLProvider(IHyperPlayConfig config, IHyperPlayData data, Data _dataStorage = dataStorage; _chainConfig = chainConfig; _chainRegistryProvider = chainRegistryProvider; - + // Initialize Unity controller. _ethereumController = Object.FindObjectOfType(); @@ -58,7 +58,7 @@ public HyperPlayWebGLProvider(IHyperPlayConfig config, IHyperPlayData data, Data public override async Task Connect() { string account = await _ethereumController.Connect(_chainConfig, _chainRegistryProvider); - + // Saved account exists. if (_data.RememberSession) { @@ -87,7 +87,7 @@ public override async Task Connect() public override async Task Perform(string method, params object[] parameters) { var response = await _ethereumController.Request(method, parameters); - + return response.Result.ToObject(); } } diff --git a/Packages/io.chainsafe.web3-unity.marketplace/Editor/CscImporter.cs b/Packages/io.chainsafe.web3-unity.marketplace/Editor/CscImporter.cs index 2a33642e6..4e6f6babf 100644 --- a/Packages/io.chainsafe.web3-unity.marketplace/Editor/CscImporter.cs +++ b/Packages/io.chainsafe.web3-unity.marketplace/Editor/CscImporter.cs @@ -11,7 +11,7 @@ public class CscRspChecker static CscRspChecker() { - + CheckAndCreateCscRsp(); } diff --git a/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace/Marketplace.cs b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace/Marketplace.cs index d07df65f5..f054eb2ff 100644 --- a/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace/Marketplace.cs +++ b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace/Marketplace.cs @@ -57,7 +57,7 @@ public class Marketplace var response = await CSServer.GetData(path); return response; } - + /// /// Gets all tokens in a project. /// Path: https://api.gaming.chainsafe.io/v1/projects/{projectID}/tokens @@ -124,7 +124,7 @@ public class Marketplace var response = await CSServer.GetData(path); return response; } - + /// /// Creates a 721 collection /// /// Path https://api.gaming.chainsafe.io/v1/projects/8524f420-ecd1-4cfd-a651-706ade97cac7/collections @@ -136,9 +136,9 @@ public class Marketplace /// Contract send data object public static async Task Create721Collection(string _bearerToken, string _name, string _description, bool _isMintingPublic) { - var logoImageData = await UploadPlatforms.GetImageData(); - var bannerImageData = await UploadPlatforms.GetImageData(); - var formData = new List + var logoImageData = await UploadPlatforms.GetImageData(); + var bannerImageData = await UploadPlatforms.GetImageData(); + var formData = new List { new MultipartFormDataSection("name", _name), new MultipartFormDataSection("description", _description), @@ -151,12 +151,12 @@ public static async Task Create721Collection(string _bearerT new MultipartFormDataSection("contractAddress", ChainSafeContracts.MarketplaceContracts[Web3Accessor.Web3.ChainConfig.ChainId]), new MultipartFormDataSection("type", "erc721") }; - var path = "/collections"; - var collectionResponse = await CSServer.CreateData(_bearerToken, path, formData); - var collectionData = JsonConvert.DeserializeObject(collectionResponse); - var method = "create721Collection"; - object[] args = - { + var path = "/collections"; + var collectionResponse = await CSServer.CreateData(_bearerToken, path, formData); + var collectionData = JsonConvert.DeserializeObject(collectionResponse); + var method = "create721Collection"; + object[] args = + { Web3Accessor.Web3.ProjectConfig.ProjectId, collectionData.id, _name, @@ -164,11 +164,11 @@ public static async Task Create721Collection(string _bearerT collectionData.banner, _isMintingPublic }; - var contract = Web3Accessor.Web3.ContractBuilder.Build(ABI.MarketplaceFactory, ChainSafeContracts.MarketplaceContracts[Web3Accessor.Web3.ChainConfig.ChainId]); - var data = await contract.SendWithReceipt(method, args); - return data.receipt; + var contract = Web3Accessor.Web3.ContractBuilder.Build(ABI.MarketplaceFactory, ChainSafeContracts.MarketplaceContracts[Web3Accessor.Web3.ChainConfig.ChainId]); + var data = await contract.SendWithReceipt(method, args); + return data.receipt; } - + /// /// Creates a 1155 collection /// Path https://api.gaming.chainsafe.io/v1/projects/8524f420-ecd1-4cfd-a651-706ade97cac7/collections/ @@ -209,7 +209,7 @@ public static async Task Create1155Collection(string _bearer _isMintingPublic }; var contract = Web3Accessor.Web3.ContractBuilder.Build(ABI.MarketplaceFactory, ChainSafeContracts.MarketplaceContracts[Web3Accessor.Web3.ChainConfig.ChainId]); - var data = await contract.SendWithReceipt(method, args); + var data = await contract.SendWithReceipt(method, args); return data.receipt; } catch (Web3Exception e) @@ -218,7 +218,7 @@ public static async Task Create1155Collection(string _bearer throw; } } - + /// /// /// Mints a 721 collection nft to the collection /// @@ -236,7 +236,7 @@ public static async Task Mint721CollectionNft(string _collec _uri }; var contract = Web3Accessor.Web3.ContractBuilder.Build(ABI.GeneralErc721, _collectionContract); - var data = await contract.SendWithReceipt(method, args); + var data = await contract.SendWithReceipt(method, args); return data.receipt; } catch (Web3Exception e) @@ -245,7 +245,7 @@ public static async Task Mint721CollectionNft(string _collec throw; } } - + /// /// Mints a 1155 collection nft to the collection /// @@ -265,9 +265,9 @@ public static async Task Mint1155CollectionNft(string _colle _uri, amount }; - + var contract = Web3Accessor.Web3.ContractBuilder.Build(ABI.GeneralErc1155, _collectionContract); - var data = await contract.SendWithReceipt(method, args); + var data = await contract.SendWithReceipt(method, args); return data.receipt; } catch (Web3Exception e) @@ -276,7 +276,7 @@ public static async Task Mint1155CollectionNft(string _colle throw; } } - + /// /// Deletes a collection that isn't on chain yet by ID /// Path https://api.gaming.chainsafe.io/v1/projects/8524f420-ecd1-4cfd-a651-706ade97cac7/collections/e38e9465-fb9b-4316-8d1d-c77e81b50d6a @@ -290,7 +290,7 @@ public static async Task DeleteCollection(string _bearerToken, string _c var response = await CSServer.DeleteData(_bearerToken, path); return response; } - + /// /// Creates a marketplace /// Path: https://api.gaming.chainsafe.io/v1/projects/8524f420-ecd1-4cfd-a651-706ade97cac7/marketplaces @@ -324,7 +324,7 @@ public static async Task CreateMarketplace(string _bearerTok _whitelisting }; var contract = Web3Accessor.Web3.ContractBuilder.Build(ABI.MarketplaceFactory, ChainSafeContracts.MarketplaceContracts[Web3Accessor.Web3.ChainConfig.ChainId]); - var data = await contract.SendWithReceipt(method, args); + var data = await contract.SendWithReceipt(method, args); return data.receipt; } catch (Web3Exception e) @@ -333,7 +333,7 @@ public static async Task CreateMarketplace(string _bearerTok throw; } } - + /// /// Deletes a marketplace that isn't on chain yet by ID /// Path: https://api.gaming.chainsafe.io/v1/projects/8524f420-ecd1-4cfd-a651-706ade97cac7/marketplaces/{marketplaceId} @@ -347,7 +347,7 @@ public static async Task DeleteMarketplace(string _bearerToken, string _ var response = await CSServer.DeleteData(_bearerToken, path); return response; } - + /// /// Approves the marketplace to list 721 Nfts /// @@ -367,7 +367,7 @@ public static async Task SetApprovalMarketplace(string _nftC }; var abi = _type == "721" ? Token.ABI.GeneralErc721 : Token.ABI.GeneralErc1155; var contract = Web3Accessor.Web3.ContractBuilder.Build(abi, _nftContract); - var data = await contract.SendWithReceipt(method, args); + var data = await contract.SendWithReceipt(method, args); return data.receipt; } catch (Web3Exception e) @@ -376,7 +376,7 @@ public static async Task SetApprovalMarketplace(string _nftC throw; } } - + /// /// Purchases NFT from the marketplace /// @@ -399,7 +399,7 @@ public static async Task PurchaseNft(string _marketplaceCont Value = new HexBigInteger(BigInteger.Parse(_amountToSend).ToString("X")) }; var contract = Web3Accessor.Web3.ContractBuilder.Build(ABI.Marketplace, _marketplaceContract); - var data = await contract.SendWithReceipt(method, args, tx); + var data = await contract.SendWithReceipt(method, args, tx); return data.receipt; } catch (Web3Exception e) @@ -408,7 +408,7 @@ public static async Task PurchaseNft(string _marketplaceCont throw; } } - + /// /// Lists Nfts to the marketplace /// @@ -433,7 +433,7 @@ public static async Task ListNftsToMarketplace(string _marke deadline }; var contract = Web3Accessor.Web3.ContractBuilder.Build(ABI.Marketplace, _marketplaceContract); - var data = await contract.SendWithReceipt(method, args); + var data = await contract.SendWithReceipt(method, args); return data.receipt; } catch (Web3Exception e) @@ -460,7 +460,7 @@ public static void PrintObject(object obj) } #endregion - + #endregion } } \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerUniversal.cs b/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerUniversal.cs index 7c072424d..851157f6e 100644 --- a/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerUniversal.cs +++ b/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerUniversal.cs @@ -11,12 +11,12 @@ public class RampExchangerUniversal : IRampExchanger, ILifecycleParticipant private readonly IRampExchangerConfig config; private readonly ISigner signer; private readonly IAnalyticsClient analyticsClient; - + public event Action OnRampPurchaseCreated; public event Action OffRampSaleCreated; private IRampExchanger platformImplementation; - + public RampExchangerUniversal(IRampExchangerConfig config, ISigner signer, IAnalyticsClient analyticsClient) { diff --git a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/IWeb3AuthTransactionHandler.cs b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/IWeb3AuthTransactionHandler.cs index 38d9460a1..7b4ec9286 100644 --- a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/IWeb3AuthTransactionHandler.cs +++ b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/IWeb3AuthTransactionHandler.cs @@ -9,14 +9,14 @@ public interface IWeb3AuthTransactionHandler public event Action OnTransactionConfirmed; - public event Action OnTransactionApproved; - + public event Action OnTransactionApproved; + public event Action OnTransactionDeclined; - + public void RequestTransaction(TransactionRequested transactionRequested); public void ConfirmTransaction(TransactionConfirmed transactionConfirmed); - + public void ApproveTransaction(TransactionApproved transactionApproved); public void DeclineTransaction(TransactionDeclined transactionDeclined); diff --git a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Plugins/Web3AuthSDK/Web3Auth.cs b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Plugins/Web3AuthSDK/Web3Auth.cs index 68e7b205f..4fb593eed 100644 --- a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Plugins/Web3AuthSDK/Web3Auth.cs +++ b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Plugins/Web3AuthSDK/Web3Auth.cs @@ -376,7 +376,7 @@ private void authorizeSession(string newSessionId) sessionId = newSessionId; // Debug.Log("sessionId during authorizeSession in else part =>" + sessionId); } - + if (!string.IsNullOrEmpty(sessionId)) { var pubKey = KeyStoreManagerUtils.getPubKey(sessionId); @@ -391,12 +391,12 @@ private void authorizeSession(string newSessionId) shareMetadata.ephemPublicKey, shareMetadata.iv ); - + var encryptedShareBytes = AES256CBC.toByteArray(new BigInteger(shareMetadata.ciphertext, 16)); var share = aes256cbc.decrypt(encryptedShareBytes, shareMetadata.mac); var tempJson = JsonConvert.DeserializeObject(System.Text.Encoding.UTF8.GetString(share)); - + this.web3AuthResponse = JsonConvert.DeserializeObject(tempJson.ToString()); if (this.web3AuthResponse != null) diff --git a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthEventManager.cs b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthEventManager.cs index 852a823d6..0c6755323 100644 --- a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthEventManager.cs +++ b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthEventManager.cs @@ -10,19 +10,19 @@ namespace ChainSafe.GamingSdk.Web3Auth public static class Web3AuthEventManager { #region Events - + public static event EventHandler ConfigureTxManager; - + public static event EventHandler ConfigureGuiManager; - + public static event Action SetTokens; - + public static event Action ToggleWallet; - + #endregion #region Methods - + /// /// Configures TX Manager. /// @@ -31,7 +31,7 @@ public static void RaiseConfigureTxManager(TxManagerConfigEventArgs args) { ConfigureTxManager?.Invoke(null, args); } - + /// /// Configure GUI manager. /// @@ -40,7 +40,7 @@ public static void RaiseConfigureGuiManager(GuiManagerConfigEventArgs args) { ConfigureGuiManager?.Invoke(null, args); } - + /// /// Invokes set tokens. /// @@ -48,7 +48,7 @@ public static void RaiseSetTokens() { SetTokens?.Invoke(); } - + /// /// Invokes toggle wallet. /// @@ -56,12 +56,12 @@ public static void RaiseToggleWallet() { ToggleWallet?.Invoke(); } - + #endregion } #region Configuration Classes - + /// /// Configuration class for the Web3Auth Tx Manager. /// @@ -71,7 +71,7 @@ public class TxManagerConfigEventArgs : EventArgs public bool AutoPopUpWalletOnTx { get; private set; } public bool AutoConfirmTransactions { get; private set; } - + public TMP_FontAsset DisplayFont { get; private set; } public Color SecondaryTextColour { get; private set; } @@ -87,34 +87,34 @@ public TxManagerConfigEventArgs(bool autoPopUpWalletOnTx, bool autoConfirmTransa DisplayFont = displayFont; SecondaryTextColour = secondaryTextColour; } - + #endregion } - + /// /// Configuration class for the Web3Auth GUI manager. /// public class GuiManagerConfigEventArgs : EventArgs { #region Properties - + public bool DisplayWalletIcon { get; private set; } public Sprite WalletIcon { get; private set; } public Sprite WalletLogo { get; private set; } - + #endregion #region Methods - + public GuiManagerConfigEventArgs(bool displayWalletIcon, Sprite walletIcon, Sprite walletLogo) { DisplayWalletIcon = displayWalletIcon; WalletIcon = walletIcon; WalletLogo = walletLogo; } - + #endregion } - + #endregion } \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthWalletGUI.cs b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthWalletGUI.cs index 8e17f9508..7060df749 100644 --- a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthWalletGUI.cs +++ b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthWalletGUI.cs @@ -12,7 +12,7 @@ public class Web3AuthWalletGUI : MonoBehaviour { #region Fields - + [SerializeField] private Text autoConfirmTxLabel; [SerializeField] private GameObject walletIconContainer; [SerializeField] private List primaryBackgroundObjects; @@ -21,7 +21,7 @@ public class Web3AuthWalletGUI : MonoBehaviour [SerializeField] private List secondaryTextObjects; [SerializeField] private List displayLineObjects; [SerializeField] private List borderButtonObjects; - + #endregion #region Properties @@ -37,11 +37,11 @@ public class Web3AuthWalletGUI : MonoBehaviour private Color SecondaryTextColour { get; set; } private Color BorderButtonColour { get; set; } private TMP_FontAsset DisplayFont { get; set; } - + #endregion #region Methods - + /// /// Method to initialize parameters after prefab creation /// @@ -62,7 +62,7 @@ public void Initialize(Web3AuthWalletConfig config) BorderButtonColour = config.BorderButtonColour; SetCustomConfig(); } - + /// /// Sets custom config from the login scene. /// @@ -75,7 +75,7 @@ private void SetCustomConfig() walletIconContainer.SetActive(DisplayWalletIcon); SetCustomColours(); } - + /// /// Sets custom colours for menu and text objects. /// @@ -114,7 +114,7 @@ private void SetCustomColours() autoConfirmTxLabel.color = SecondaryTextColour; SetButtonsAndLines(); } - + /// /// Sets border buttons & menu lines. /// @@ -142,11 +142,11 @@ private void SetButtonsAndLines() } } } - + #endregion - + #region ConfigClass - + [Serializable] public class Web3AuthWalletConfig { @@ -162,6 +162,6 @@ public class Web3AuthWalletConfig public Color SecondaryTextColour; public Color BorderButtonColour; } - + #endregion } diff --git a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthWalletGUITokenManager.cs b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthWalletGUITokenManager.cs index 10409751a..0d5b3a81d 100644 --- a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthWalletGUITokenManager.cs +++ b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthWalletGUITokenManager.cs @@ -18,7 +18,7 @@ public class Web3AuthWalletGUITokenManager : MonoBehaviour { #region Fields - + [SerializeField] private GameObject customTokenPlaceHolder; [SerializeField] private GameObject customTokenDisplay; [SerializeField] private GameObject transferTokensContainer; @@ -42,11 +42,11 @@ public class Web3AuthWalletGUITokenManager : MonoBehaviour private bool isSymbolTaskRunning; private string lastCheckedAddress; private string customTokenContract; - + #endregion #region Methods - + /// /// Initializes objects. /// @@ -90,7 +90,7 @@ private async void SetTokens() nativeTokenAmountText.text = ethBalance.ToString("0.#########"); SetTokenDropdownOptions(); } - + /// /// Toggles the add token menu. /// @@ -128,7 +128,7 @@ private async void GetSymbol() isSymbolTaskRunning = false; } } - + /// /// Adds a custom token to the wallet. /// @@ -144,7 +144,7 @@ private void AddToken() customTokenSymbolInput.text = string.Empty; SetTokens(); } - + /// /// Sets the dropdown options in the token transfer menu. /// @@ -157,7 +157,7 @@ private void SetTokenDropdownOptions() selectedTokenToTransfer.options.Add(customTokenOption); selectedTokenToTransfer.RefreshShownValue(); } - + /// /// Toggles the transfer tokens menu. /// @@ -165,7 +165,7 @@ private void ToggleTransferTokensMenuButton() { transferTokensContainer.SetActive(!transferTokensContainer.activeSelf); } - + /// /// Transfers tokens to a wallet address. /// @@ -191,7 +191,7 @@ private async void TransferTokens() throw new Web3Exception("Transfer failed, please check that the token contract exists & you have enough tokens to complete the transfer"); } } - + /// /// Subscribes to events. /// @@ -199,7 +199,7 @@ private void OnEnable() { Web3AuthEventManager.SetTokens += SetTokens; } - + /// /// Unsubscribes from events. /// @@ -215,6 +215,6 @@ private void Update() { GetSymbol(); } - + #endregion } diff --git a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthWalletGUITxManager.cs b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthWalletGUITxManager.cs index 2920cdfa0..ca7adebaf 100644 --- a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthWalletGUITxManager.cs +++ b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/WalletGUI/Scripts/Web3AuthWalletGUITxManager.cs @@ -14,7 +14,7 @@ public class Web3AuthWalletGUITxManager : MonoBehaviour { #region Fields - + [SerializeField] private ScrollRect txScrollRect; [SerializeField] private TextMeshProUGUI incomingTxActionText; [SerializeField] private TextMeshProUGUI incomingTxHashText; @@ -35,20 +35,20 @@ public class Web3AuthWalletGUITxManager : MonoBehaviour private bool _processingTransaction; private IWeb3AuthTransactionHandler _transactionHandler; private Queue _transactionQueue = new Queue(); - + #endregion #region Properties - + private bool AutoPopUpWalletOnTx { get; set; } private bool AutoConfirmTransactions { get; set; } private TMP_FontAsset DisplayFont { get; set; } private Color SecondaryTextColour { get; set; } - + #endregion #region Methods - + /// /// Initializes objects. /// @@ -61,7 +61,7 @@ private void Awake() _transactionHandler = Web3Accessor.Web3.ServiceProvider.GetService(); } - + /// /// Populates the incoming transaction display. /// @@ -75,23 +75,23 @@ private void OnTransactionRequested(TransactionRequested transactionRequested) } _processingTransaction = true; - + PromptTransactionRequest(); } - + /// /// Prompts transaction request display. /// private void PromptTransactionRequest() { TransactionRequested transactionRequested = _transactionQueue.Peek(); - + incomingTxNotification.SetActive(true); if (AutoConfirmTransactions) { AcceptRequest(); - + return; } @@ -105,7 +105,7 @@ private void PromptTransactionRequest() incomingTxHashText.text = transactionRequested.Transaction.Data; incomingTxActionText.text = transactionRequested.Transaction.Value?.ToString() ?? "Sign Request"; } - + /// /// Accepts an incoming transaction request. /// @@ -116,7 +116,7 @@ private void AcceptRequest() _transactionHandler.ApproveTransaction(new TransactionApproved(transactionRequested.Id)); ResetTransactionDisplay(); } - + /// /// Rejects an incoming transaction request. /// @@ -126,21 +126,21 @@ private void RejectRequest() _transactionHandler.DeclineTransaction(new TransactionDeclined(transactionRequested.Id)); ResetTransactionDisplay(); } - + /// /// Gets transaction data. /// private void OnTransactionConfirmed(TransactionConfirmed transactionConfirmed) { var response = transactionConfirmed.Transaction; - + var txHash = response.Hash; var txTime = DateTime.Now.ToString("hh:mm tt"); var txAmount = response.Value?.ToString() ?? "0"; var txAction = response.Value != null ? response.Value.ToString() : "Sign Request"; AddTransactionToHistory(txTime, txAction, txAmount, txHash); } - + /// /// Adds a transaction to the history area. /// @@ -170,7 +170,7 @@ private void AddTransactionToHistory(string time, string action, string amount, txObjectNumber++; txScrollRect.verticalNormalizedPosition = 0; } - + /// /// Resets the transaction display. /// @@ -192,7 +192,7 @@ private void ResetTransactionDisplay() _processingTransaction = false; } } - + /// /// Updates the transaction history prefab text. /// @@ -221,7 +221,7 @@ private void UpdateTransactionHistory(int txObjectIndex, string txNumber, string txHistoryObj.GetComponent