This repository has been archived by the owner on Nov 22, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clone struct when picking item from array or map.
- Loading branch information
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ab74c36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erikzhang
This might actually break existing contracts depending on how their compiler is implemented. E.g. I'm almost certain it breaks the ICO template contract that most ICOs use and v1 switcheo DEX - I have test cases that test contract avm copied directly from the mainnet, and they started failing only after making this change. (Tests are here, though likely hard to grok https://github.com/neo-one-suite/neo-one/blob/master/packages/neo-one-node-vm/src/__tests__/execute.test.ts. At a high level, they test the concierge ICO and switcheo v1 DEX contracts).
ab74c36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the results of your test, do we have to roll back this commit? @dicarlo2
ab74c36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erikzhang definitely a good thing it was rolled back - I went ahead and pushed the change to neo-one and our nodes are returning different results, most likely because of this change.
ab74c36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erikzhang also, sorry for the delayed reply, it's been a hectic couple of weeks.