Skip to content

Commit

Permalink
fix: token addresses of V2CirclesTokenBalances were wrong (1.5.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaensen committed Aug 5, 2024
1 parent 4e587df commit 4ea6f0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Circles.Index.Rpc/CirclesRpcModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,14 @@ private List<CirclesTokenBalanceV2> V2CirclesTokenBalances(IEthRpcModule rpcModu
if (asTimeCircles)
{
var tcBalance = FormatTimeCircles(tokenBalance);
balances.Add(new CirclesTokenBalanceV2(tokenId, tcBalance, tokenId.ToHexString(true)));
Address tokenAddress = new(tokenIdBytes.Slice(32 - 20, 20));
balances.Add(new CirclesTokenBalanceV2(tokenId, tcBalance, tokenAddress.ToString(true, false)));
}
else
{
Address tokenAddress = new(tokenIdBytes.Slice(32 - 20, 20));
balances.Add(new CirclesTokenBalanceV2(tokenId, tokenBalance.ToString(CultureInfo.InvariantCulture),
tokenId.ToHexString(true)));
tokenAddress.ToString(true, false)));
}
}

Expand Down
4 changes: 2 additions & 2 deletions Circles.Index/Circles.Index.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<Authors>Daniel Janz (Gnosis Service GmbH)</Authors>
<Copyright>Gnosis Service GmbH</Copyright>
<Product>Circles</Product>
<AssemblyVersion>1.4.1</AssemblyVersion>
<FileVersion>1.4.1</FileVersion>
<AssemblyVersion>1.5.0</AssemblyVersion>
<FileVersion>1.5.0</FileVersion>
</PropertyGroup>


Expand Down

0 comments on commit 4ea6f0f

Please sign in to comment.