Skip to content

Commit

Permalink
all method public on metamask
Browse files Browse the repository at this point in the history
  • Loading branch information
youtpout committed Jan 31, 2023
1 parent b2d66e6 commit 1cea2af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Assets/Plugins/Web3Unity/Metamask/MetamaskProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,28 @@ public class MetamaskProvider : IClient
{
#if UNITY_WEBGL
[DllImport("__Internal")]
private static extern void Connect(Action<int, string> callback);
public static extern void Connect(Action<int, string> callback);

[DllImport("__Internal")]
private static extern void Request(string jsonCall, Action<int, string> callback);
public static extern void Request(string jsonCall, Action<int, string> callback);

[DllImport("__Internal")]
public static extern bool IsMetamaskAvailable();

[DllImport("__Internal")]
private static extern string GetSelectedAddress();
public static extern string GetSelectedAddress();

[DllImport("__Internal")]
private static extern bool IsConnected();
public static extern bool IsConnected();

[DllImport("__Internal")]
public static extern string RequestRpcClientCallback(Action<string> rpcResponse, string rpcRequest);
#else
// handle special platform like ios who throw an error on DllImport
private static void Connect(Action<int, string> callback)
public static void Connect(Action<int, string> callback)
{
}
private static void Request(string jsonCall, Action<int, string> callback)
public static void Request(string jsonCall, Action<int, string> callback)
{
}
public static bool IsMetamaskAvailable()
Expand Down

0 comments on commit 1cea2af

Please sign in to comment.