Skip to content

Commit

Permalink
Changed TokenContract type to IFA2 to external uses;
Browse files Browse the repository at this point in the history
  • Loading branch information
k-karuna committed Jul 6, 2023
1 parent 187cc6b commit b0b687c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Runtime/Scripts/Tezos/ITezos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections;
using TezosSDK.Tezos.API;
using TezosSDK.Tezos.API.Models;
using TezosSDK.Tezos.API.Models.Abstract;
using TezosSDK.Tezos.Wallet;

namespace TezosSDK.Tezos
Expand All @@ -21,7 +22,7 @@ public interface ITezos
/// <summary>
/// Currently used FA2 Contract.
/// </summary>
TokenContract TokenContract { get; }
IFA2 TokenContract { get; }

/// <summary>
/// Current wallet tz balance.
Expand Down
3 changes: 2 additions & 1 deletion Runtime/Scripts/Tezos/Tezos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using TezosSDK.Beacon;
using TezosSDK.Tezos.API;
using TezosSDK.Tezos.API.Models;
using TezosSDK.Tezos.API.Models.Abstract;
using TezosSDK.Tezos.Wallet;
using UnityEngine;

Expand All @@ -17,7 +18,7 @@ public class Tezos : ITezos
public WalletMessageReceiver MessageReceiver { get; }
public ITezosAPI API { get; }
public IWalletProvider Wallet { get; }
public TokenContract TokenContract { get; }
public IFA2 TokenContract { get; }

public Tezos()
{
Expand Down
3 changes: 2 additions & 1 deletion Runtime/Scripts/Tezos/TezosSingleton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using TezosSDK.Helpers;
using TezosSDK.Tezos.API;
using TezosSDK.Tezos.API.Models;
using TezosSDK.Tezos.API.Models.Abstract;
using TezosSDK.Tezos.Wallet;


Expand All @@ -15,7 +16,7 @@ public class TezosSingleton : SingletonMonoBehaviour<TezosSingleton>, ITezos
private static Tezos _tezos;
public ITezosAPI API => _tezos?.API;
public IWalletProvider Wallet => _tezos?.Wallet;
public TokenContract TokenContract => _tezos?.TokenContract;
public IFA2 TokenContract => _tezos?.TokenContract;

protected override void Awake()
{
Expand Down

0 comments on commit b0b687c

Please sign in to comment.