Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollback graphql api type #619

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ public async Task WorldBossRanking(bool hex)
var models = (object[]) data["rankingInfo"];
Assert.Equal(101, models.Length);
var raider = (Dictionary<string, object>)models.Last();
Assert.Equal(targetAvatarAddress.ToString(), raider["address"]);
// FIXME should be use AddressType
Assert.Equal(targetAvatarAddress.ToHex(), raider["address"]);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ public WorldBossRankingType()
description: "Season ranking.",
resolve: context => context.Source.Ranking
);
Field<NonNullGraphType<AddressType>>(

// FIXME should be use AddressType
Field<NonNullGraphType<StringGraphType>>(
nameof(WorldBossRankingModel.Address),
description: "Address of avatar.",
resolve: context => new Address(context.Source.Address!)
resolve: context => context.Source.Address
);
Field<NonNullGraphType<StringGraphType>>(
nameof(WorldBossRankingModel.AvatarName),
Expand Down
Loading