Skip to content
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

update to support new neo #182

Merged
merged 23 commits into from Jan 20, 2020
Merged

Conversation

lightszero
Copy link
Member

@lightszero lightszero commented Jan 11, 2020

fixed #181

finish it.
can merge now.

And need help for fix the native unittest?I am not familiar with that.
@neo-project/core

lightszero and others added 11 commits January 10, 2020 10:16
LTE->LE
GTE->GT

syscall change
xswap chain->reverse
arraysize->size
ldarg
ltarg
ldloc
stloc
ldsfld
stsfld
已經編譯通過

unittest 逐個檢查中
fix 1 32addr conv bug
"System.ExecutionEngine.GetScriptContainer"->"System.Runtime.GetScriptContainer"
2.fix new biginteger op
pass all unittest for compiler now.
@shargon shargon removed the blocked label Jan 12, 2020
@lightszero lightszero requested review from shargon, erikzhang and lock9 and removed request for shargon and erikzhang January 12, 2020 13:54
@shargon
Copy link
Member

shargon commented Jan 12, 2020

I will help you with UT

src/Neo.SmartContract.Framework/OperandSizeAttribute.cs Outdated Show resolved Hide resolved
@@ -679,15 +682,15 @@ private int ConvertCode(ILMethod method, OpCode src, NeoMethod to)
case CodeEx.Brtrue:
case CodeEx.Brtrue_S:
{
var code = _Convert1by1(VM.OpCode.JMPIF, src, to, new byte[] { 0, 0 });
var code = _Convert1by1(VM.OpCode.JMPIF_L, src, to, new byte[] { 0, 0, 0, 0 });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use JMPIF if the address is less than one byte

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can do that on other pr

@neo-project neo-project deleted a comment from lightszero Jan 17, 2020
@lightszero lightszero merged commit 20ce296 into master Jan 20, 2020
@lightszero lightszero deleted the Branch_lights_matchopcodechange branch January 20, 2020 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update neo-devpack-dotnet for new opcode and slots
2 participants