Skip to content

Commit

Permalink
Merge pull request #61 from Concordium/ss/p6-bug-fixes
Browse files Browse the repository at this point in the history
Bug fix found under CCD Scan Protocol 6 update regression test
  • Loading branch information
Søren Schwartz authored Aug 14, 2023
2 parents 13ef8ea + 2b3b947 commit 10c48f7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Unreleased changes

## 4.0.1
- Bugfix
- `TransactionCount` in `BlockInfo` had wrong mapping and used `TransactionsSize` from node.
- `BakerPoolInfo` had `OpenStatus` hardcoded as `BakerPoolOpenStatus.OpenForAll`.

## 4.0.0
- The SDK requires node version 6 or later.
- Breaking changes
Expand Down Expand Up @@ -45,4 +50,4 @@
earlier versions of the SDK.

## 1.0.0
- Initial release.
- Initial release.
4 changes: 2 additions & 2 deletions src/Concordium.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageVersion>4.0.0</PackageVersion>
<PackageVersion>4.0.1</PackageVersion>
<Description>
A .NET integration library written in C# which adds support for
constructing and sending various transactions, as well as querying
Expand All @@ -16,7 +16,7 @@
<PackageTags>concordium;concordium-net-sdk;blockchain;sdk;</PackageTags>
<Company>Concordium</Company>
<PackageId>ConcordiumNetSdk</PackageId>
<Version>4.0.0</Version>
<Version>4.0.1</Version>
<PackageIcon>icon.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MPL-2.0</PackageLicenseExpression>
Expand Down
2 changes: 1 addition & 1 deletion src/Types/BakerPoolInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public sealed record BakerPoolInfo(

return new BakerPoolInfo(
CommissionRates: CommissionRates.From(poolInfo.CommissionRates),
OpenStatus: BakerPoolOpenStatus.OpenForAll,
OpenStatus: poolInfo.OpenStatus.Into(),
MetadataUrl: poolInfo.Url
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Types/BlockInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ internal static BlockInfo From(Grpc.V2.BlockInfo blockInfo) =>
BlockSlotTime: blockInfo.SlotTime.ToDateTimeOffset(),
BlockBaker: blockInfo.Baker != null ? BakerId.From(blockInfo.Baker) : null,
Finalized: blockInfo.Finalized,
TransactionCount: blockInfo.TransactionsSize,
TransactionCount: blockInfo.TransactionCount,
TransactionEnergyCost: new EnergyAmount(blockInfo.TransactionsEnergyCost.Value),
TransactionSize: blockInfo.TransactionsSize,
BlockStateHash: new StateHash(blockInfo.StateHash.Value),
Expand Down

0 comments on commit 10c48f7

Please sign in to comment.