Skip to content

Commit

Permalink
Merge pull request #3666 from greymistcube/merge/4.0.4-to-main
Browse files Browse the repository at this point in the history
🔀 Merge 4.0.4 to main
  • Loading branch information
greymistcube authored Feb 7, 2024
2 parents 4ef7b00 + b601a83 commit 15f82ad
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ To be released.
[#3651]: https://github.com/planetarium/libplanet/pull/3651


Version 4.0.4
-------------

Released on February 7, 2024.

- (Libplanet.Explorer) Revert a GraphQL query argument type change to make it
compatible with old schema. [[#3663]]

[#3663]: https://github.com/planetarium/libplanet/pull/3663


Version 4.0.3
-------------

Expand Down
5 changes: 3 additions & 2 deletions Libplanet.Explorer/Queries/TransactionQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,11 @@ public TransactionQuery(IBlockChainContext context)
Field<TransactionType>(
"transaction",
arguments: new QueryArguments(
new QueryArgument<NonNullGraphType<IdGraphType>> { Name = "id" }
new QueryArgument<IdGraphType> { Name = "id" }
),
resolve: context => ExplorerQuery.GetTransaction(
new TxId(ByteUtil.ParseHex(context.GetArgument<string>("id"))))
new TxId(ByteUtil.ParseHex(context.GetArgument<string>("id")
?? throw new ArgumentException("Given id cannot be null."))))
);

Field<NonNullGraphType<ByteStringType>>(
Expand Down

0 comments on commit 15f82ad

Please sign in to comment.