Skip to content

Commit

Permalink
temp fix!
Browse files Browse the repository at this point in the history
  • Loading branch information
dellams committed Aug 31, 2024
1 parent 944964a commit 6d751cf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ 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 ExecuteHolonProviderExample(_contractAddress);
}
}
}
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 6d751cf

Please sign in to comment.