Skip to content

Commit 3e4f298

Browse files
committed
removed unused testfunction
1 parent 19a98a2 commit 3e4f298

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Assets/MoralisWeb3ApiSdk/Example/Scripts/MainMenuScript.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ public async void WalletConnectHandler(WCSessionData data)
208208
}
209209

210210
HideWalletSelection();
211-
212-
SaveScore(10.0f);
213211
}
214212

215213
public class MyScores : MoralisObject
@@ -218,17 +216,6 @@ public class MyScores : MoralisObject
218216
public float Seconds;
219217
}
220218

221-
async void SaveScore(float time)
222-
{
223-
var user = await MoralisInterface.GetUserAsync();
224-
var addr = user.authData["moralisEth"]["id"].ToString();
225-
//var ens = MoralisInterface.GetClient().Web3Api.Resolve.ResolveAddress(addr);
226-
var score = MoralisInterface.GetClient().Create<MyScores>();
227-
score.Name = "Bob"; // !string.IsNullOrEmpty(ens.Name) ? ens.Name : addr;
228-
score.Seconds = time;
229-
await score.SaveAsync();
230-
Debug.Log("SavedScore");
231-
}
232219
/// <summary>
233220
/// Closeout connections and quit the application.
234221
/// </summary>

0 commit comments

Comments
 (0)