-
Notifications
You must be signed in to change notification settings - Fork 135
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
sync to Neo.SmartContract.Framework v3.0.0-rc3 #44
Conversation
Duplicate of #43 |
csharp/NEP17/NEP17.cs
Outdated
|
||
public static UInt160 GetOwner() => Owner; | ||
|
||
public static UInt160 GetOwner2() => Owner2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For testing?
csharp/NEP17/NEP17.cs
Outdated
@@ -9,13 +9,17 @@ namespace Neo.SmartContract.Examples | |||
[ManifestExtra("Email", "dev@neo.org")] | |||
[ManifestExtra("Description", "This is a NEP17 example")] | |||
[SupportedStandards("NEP-17")] | |||
[ContractPermission("*", "onNEP17Payment")] | |||
[ContractPermission("*", "*")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change this line
csharp/NEP17/NEP17.csproj
Outdated
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
<RootNamespace>Neo.SmartContract.Examples</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Neo.SmartContract.Framework" Version="3.0.0-preview5" /> | ||
<PackageReference Include="Neo.SmartContract.Framework" Version="3.0.0-CI00300" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing NuGet.Config file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="MyGet-neo" value="https://www.myget.org/F/neo/api/v3/index.json" />
<add key="NuGet.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
We can iterate examples if any code style changes but not do anything together before release, it could help developers to know the changes step by step. |
Agree, it's good for me. I'm writing sc on neo and it makes the example more clear and these methods are all compatible with the latest compiler as what I tested. |
The NEP-17 example should inherit |
update csproj
All done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested
@erikzhang pls review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test pass
@shargon pls review again. |
@erikzhang Merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working as expected. Thanks,
Close #46