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

Adjusting AVM to NEF #75

Merged
merged 4 commits into from
Sep 6, 2019
Merged

Adjusting AVM to NEF #75

merged 4 commits into from
Sep 6, 2019

Conversation

vncoelho
Copy link
Member

Adjusting #55 which was renaming to NVM, according to neo-project/neo#903

@vncoelho vncoelho mentioned this pull request Jul 28, 2019
@vncoelho
Copy link
Member Author

vncoelho commented Jul 28, 2019

Maybe after this PR we can refactor NeoMethod to NefMethod, right? @igormcoelho @erikzhang @shargon @lightszero

shargon
shargon previously approved these changes Jul 28, 2019
@vncoelho
Copy link
Member Author

@shargon, what NEF means? ahauahah

@shargon
Copy link
Member

shargon commented Jul 28, 2019

Neo Executable Format/File

Copy link
Member

@erikzhang erikzhang left a comment

Choose a reason for hiding this comment

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

When reading or writing Nef files, you also need to consider the header.

@shargon shargon self-requested a review July 29, 2019 05:25
@vncoelho vncoelho changed the title Renaming AVM to NEF Adjusting AVM to NEF Aug 1, 2019
@shargon
Copy link
Member

shargon commented Sep 1, 2019

@lock9 I think that is done, could you test it?

shargon
shargon previously approved these changes Sep 1, 2019
Copy link
Member

@shargon shargon left a comment

Choose a reason for hiding this comment

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

image

Tested, @lock9 need this change for preview1, so please review it as fast as possible

* Add header

* Fix attribute
{
Console.WriteLine(c.Key.ToString("X04") + "=>" + c.Value.ToString());
}
}

private static void DumpBytes(byte[] data)
{
Console.WriteLine("AVM=");
Console.WriteLine("NEF=");
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this suppose to be NEF3 in little-endian? Isn't this the magic?

neo-project/neo@f4adfac#diff-e18ce5ffc990682ed3c619715ebaf672R27

Copy link
Contributor

@igormcoelho igormcoelho left a comment

Choose a reason for hiding this comment

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

If you guys think it's fine.. ok, I couldn't test. Please make sure magic is correct.

@shargon shargon merged commit c609018 into master Sep 6, 2019
@shargon shargon deleted the renaming-avm-nef branch September 6, 2019 01:31
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.

4 participants