Skip to content

Commit

Permalink
update the latest package, fix the code check problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward-BXS committed Aug 19, 2024
1 parent c31f2f9 commit 0a21aa4
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 1,515 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private void AddPathForDelegatees(ResourceInfo resourceInfo, Address from, Addre
if (delegateeList.Count <= 0) return;
var secondDelegateeList = new List<string>();
//get and add second-level delegatee list
foreach (var delegateeAddress in delegateeList.Select(Address.FromBase58))
foreach (var delegateeAddress in delegateeList.Select(ConvertAddress))
{
//delegatee of the first-level delegate is delegator of the second-level delegate
secondDelegateeList.AddRange(GetDelegateeList(delegateeAddress, to, methodName));
Expand All @@ -92,6 +92,12 @@ private void AddPathForDelegatees(ResourceInfo resourceInfo, Address from, Addre
AddPathForTransactionFeeFreeAllowance(resourceInfo, Address.FromBase58(delegatee));
}
}

//code check not supports static invocation in linq
private Address ConvertAddress(string address)
{
return Address.FromBase58(address);
}

private void AddPathForTransactionFee(ResourceInfo resourceInfo, string from, string methodName)
{
Expand Down
2 changes: 1 addition & 1 deletion contract/Portkey.Contracts.CA/CAContract_ZkLogin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private List<string> PoseidonHashToPublicInput(string identifierHash)
return new List<string>{ identifierHash };
}

private static string HexToBigInt(byte[] hex)
private string HexToBigInt(byte[] hex)
{
return HexHelper.ConvertBigEndianToDecimalString(hex);
}
Expand Down
6 changes: 3 additions & 3 deletions contract/Portkey.Contracts.CA/Portkey.Contracts.CA.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<PackageId>Portkey.Contracts.CA</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>Portkey Contracts</Description>
Expand Down Expand Up @@ -94,7 +94,7 @@
</ContractBase>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.26.0" />
<PackageReference Include="Groth16.Net" Version="1.0.3" />
<PackageReference Include="Google.Protobuf" Version="3.27.2" />
<PackageReference Include="Groth16.Net" Version="1.1.0" />
</ItemGroup>
</Project>
10 changes: 6 additions & 4 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"sdk": {
"version": "6.0.310"
}
{
"sdk": {
"version": "8.0.204",
"rollForward": "latestMajor",
"allowPrerelease": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<OutputType>Exe</OutputType>
<Description>Smart contract deployer.</Description>
</PropertyGroup>
Expand All @@ -13,17 +13,14 @@
<None Pack="true" PackagePath="build\" Include="*.targets;" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="AElf.CSharp.CodeOps" Version="1.0.1" />
<PackageReference Include="AElf.Runtime.CSharp.Core" Version="1.3.0" />
<PackageReference Include="AElf.Types" Version="1.3.0" />
<!-- <PackageReference Include="AElf.CSharp.CodeOps" Version="1.10.0" />
<PackageReference Include="AElf.CSharp.CodeOps" Version="1.10.1" />
<PackageReference Include="AElf.Runtime.CSharp.Core" Version="1.10.0" />
<PackageReference Include="AElf.Types" Version="1.10.0" />-->
<PackageReference Include="AElf.Types" Version="1.10.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="Google.Protobuf" Version="3.26.0" />
<PackageReference Include="Volo.Abp.Core" Version="7.0.0" />
<PackageReference Include="Google.Protobuf" Version="3.27.2" />
<PackageReference Include="Volo.Abp.Core" Version="8.0.5" />
</ItemGroup>

<Target Name="CopyDlls" AfterTargets="AfterBuild">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>AElf.Boilerplate.MainChain</RootNamespace>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ServerGarbageCollection>true</ServerGarbageCollection>
</PropertyGroup>

Expand All @@ -26,11 +26,11 @@

<ItemGroup>
<PackageReference Include="AElf.WebApp.Application.Chain" Version="1.3.0">
<CopyToOutputDirectory>lib\net6.0\*.xml</CopyToOutputDirectory>
<CopyToOutputDirectory>lib\net8.0\*.xml</CopyToOutputDirectory>
<PackageName>aelf.webapp.application.chain</PackageName>
</PackageReference>
<PackageReference Include="AElf.WebApp.Application.Net" Version="1.3.0">
<CopyToOutputDirectory>lib\net6.0\*.xml</CopyToOutputDirectory>
<CopyToOutputDirectory>lib\net8.0\*.xml</CopyToOutputDirectory>
<PackageName>aelf.webapp.application.net</PackageName>
</PackageReference>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>AElf.Boilerplate.SystemTransactionGenerator</RootNamespace>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>AElf.Boilerplate.TestBase</RootNamespace>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
Loading

0 comments on commit 0a21aa4

Please sign in to comment.