-
Notifications
You must be signed in to change notification settings - Fork 102
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 neo-core #414
Sync neo-core #414
Conversation
Maybe we should wait for neo-project/neo#2167? |
We are updating the |
@ShawnYun could you check why it's failing the Storage UT? |
The neo-core is still 3.0.0-CI01130, FindKeys is out-of-date already. |
Wait for neo-project/neo#2211 |
Ready to review |
@neo-project/ngd-shanghai Test. |
Under testing. |
Deploy a contract like below, it seems when return value is void, it will throw exception. Contract: public static string test2()
{
return "test2";
}
public static void _deploy(bool update)
{
Storage.Put(Storage.CurrentContext,"this","is");
}
public static void test3(int a)
{
a = a + 2;
}
public static int testInt(int a)
{
return 1;
}
public static void testvoidinputstring(string a)
{
a = a + "abc";
} |
@cloud8little this doesn't happen before this PR? or happen without |
at least we can deploy nep17 contract successfully which also have _deploy by default. I tried without _deploy in the contract. same error. |
The compiler didn't emit the opcode |
@shargon The reason is parameters can not be changed in the function. It is not the return void error. For experiment you can change the test contract a bit as following: public static void Testvoid(int a, int b)
{
a = a + 2;
} I guess it is a legacy issue. Let's discuss/fix in other PRs. |
@cloud8little please open a new issue, we can fix it in other PR |
Close #412
System.Iterator.Concat
,System.Enumerator.Concat
andSystem.Callback.*
System.Storage.FindKeys
andOracleResponseCode
CallFlags.cs
,Contract.Call