Skip to content

Commit

Permalink
Merge branch 'master' into feature/minting-nft-arbitrum
Browse files Browse the repository at this point in the history
  • Loading branch information
abukhalid-abdurrahman authored Sep 1, 2024
2 parents 33c7b53 + 6d751cf commit 1eafc76
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,8 @@ private static async Task Main(string[] args)
Console.WriteLine("NextGenSoftware.OASIS.API.Providers.ArbitrumOASIS - TEST HARNESS");

// TODO: Uncomment one of example method to start testing ethereum provider CRUD
await ExecuteAvatarProviderExample(_contractAddress);
// await ExecuteAvatarProviderExample(_contractAddress);
// await ExecuteAvatarProviderExample(_contractAddress);
// await ExecuteHolonProviderExample(_contractAddress);

await ExecuteMintNftExample();
await ExecuteSendNFTExample();
}
Expand Down
2 changes: 1 addition & 1 deletion NextGenSoftware.OASIS.STAR.CLI.Lib/STARCLI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ public static async Task BeamInAvatar()
CLIEngine.ShowErrorMessage("Error Beaming In. Username/Password may be incorrect.");
}

CLIEngine.ShowSuccessMessage(string.Concat("Successfully Beamed In! Welcome back ", STAR.BeamedInAvatar.Username, ". Have a nice day! :) You Are Level ", STAR.BeamedInAvatarDetail.Level, " And Have ", STAR.BeamedInAvatarDetail.Karma, " Karma."));
//CLIEngine.ShowSuccessMessage(string.Concat("Successfully Beamed In! Welcome back ", STAR.BeamedInAvatar.Username, ". Have a nice day! :) You Are Level ", STAR.BeamedInAvatarDetail.Level, " And Have ", STAR.BeamedInAvatarDetail.Karma, " Karma."));
//ShowAvatarStats();
//await ReadyPlayerOne();
}
Expand Down
4 changes: 2 additions & 2 deletions NextGenSoftware.OASIS.STAR/OASISAPIManager/OASISAPIManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ private void InitOASIS(bool startApolloServer = true)

LogAvatarIntoOASISManagers();

if (startApolloServer)
ApolloServer.StartServer();
//if (startApolloServer)
// ApolloServer.StartServer();

IsOASISBooted = true;

Expand Down
11 changes: 6 additions & 5 deletions NextGenSoftware.OASIS.STAR/Star.cs
Original file line number Diff line number Diff line change
Expand Up @@ -486,12 +486,13 @@ public static async Task<OASISResult<IAvatar>> BeamInAsync(string username, stri
BeamedInAvatar = (Avatar)result.Result;
OASISAPI.LogAvatarIntoOASISManagers(); //TODO: Is there a better way of doing this?

OASISResult<IAvatarDetail> loggedInAvatarDetailResult = await OASISAPI.Avatar.LoadAvatarDetailAsync(BeamedInAvatar.Id);
//TODO: Fix later! Gifts property de-serialiazed issue in MongoDBOASIS
//OASISResult<IAvatarDetail> loggedInAvatarDetailResult = await OASISAPI.Avatar.LoadAvatarDetailAsync(BeamedInAvatar.Id);

if (!loggedInAvatarDetailResult.IsError && loggedInAvatarDetailResult.Result != null)
BeamedInAvatarDetail = loggedInAvatarDetailResult.Result;
else
OASISErrorHandling.HandleError(ref result, $"Error Occured In BeamInAsync Calling LoadAvatarDetailAsync. Reason: {loggedInAvatarDetailResult.Message}");
//if (!loggedInAvatarDetailResult.IsError && loggedInAvatarDetailResult.Result != null)
// BeamedInAvatarDetail = loggedInAvatarDetailResult.Result;
//else
// OASISErrorHandling.HandleError(ref result, $"Error Occured In BeamInAsync Calling LoadAvatarDetailAsync. Reason: {loggedInAvatarDetailResult.Message}");
}

return result;
Expand Down

0 comments on commit 1eafc76

Please sign in to comment.