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

Add tests for KEYS, VALUES instructions #303

Merged
merged 3 commits into from Mar 29, 2020
Merged

Add tests for KEYS, VALUES instructions #303

merged 3 commits into from Mar 29, 2020

Conversation

ixje
Copy link
Contributor

@ixje ixje commented Mar 19, 2020

No description provided.

{
"type": "map",
"value": {
"": {
Copy link
Contributor Author

@ixje ixje Mar 19, 2020

Choose a reason for hiding this comment

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

fyi; this odd key value ("") is because an Integer stackitem with a 0 value returns an empty byte array instead of a byte array with a single item set to 0, see

internal override ReadOnlyMemory<byte> Memory => value.IsZero ? ReadOnlyMemory<byte>.Empty : value.ToByteArray();

It therefore translates to "" instead of "0x<value>" as all other values do.

@erikzhang erikzhang merged commit 288caa6 into neo-project:master Mar 29, 2020
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.

None yet

4 participants