Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Allow to compress syscalls api methods #114

Merged
merged 2 commits into from
Apr 8, 2019

Conversation

shargon
Copy link
Member

@shargon shargon commented Apr 8, 2019

With this change we can build using the last version of SYSCALL

@shargon shargon merged commit fbc276e into neo-project:master Apr 8, 2019
@shargon shargon deleted the script-builder-hash branch April 8, 2019 13:57
script.EmitSysCall("Neo.Runtime.GetTrigger", true);
CollectionAssert.AreEqual(new byte[] { (byte)OpCode.SYSCALL, 0x04, 0x75, 0xC8, 0x93, 0xE3 }.ToArray(), script.ToArray());
}

Copy link
Contributor

@igormcoelho igormcoelho Apr 8, 2019

Choose a reason for hiding this comment

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

Good test here! But man, stop being lazy and add another test (with false) with the complete byte array (writing all bytes manually xD)

Copy link
Member Author

Choose a reason for hiding this comment

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

I have 252 tests, 3 lines below, with false xD

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants