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

modify stackitem equals #427

Merged
merged 12 commits into from
Jun 27, 2018
Merged

modify stackitem equals #427

merged 12 commits into from
Jun 27, 2018

Conversation

JasonZhouPW
Copy link
Member

No description provided.

@laizy
Copy link
Contributor

laizy commented Jun 26, 2018

asymmetry implementation may cause true == 10 but 10 != true

@laizy laizy closed this Jun 26, 2018
@laizy laizy reopened this Jun 26, 2018
@@ -65,7 +65,7 @@ func TestRandomCodeCrash(t *testing.T) {
//cache := storage.NewCloneCache(testBatch)
sc := SmartContract{
Config: config,
Gas: 10000,
Gas: 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

why modify this?

return false
}

return reflect.DeepEqual(this._array, oa)
Copy link
Contributor

Choose a reason for hiding this comment

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

this is unsound. Equals on ByteArray, Integer and Bool now is type-erased, but DeepEqual is not.

@tanZiWen tanZiWen merged commit 02512aa into ontio:master Jun 27, 2018
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.

3 participants