Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Fix for trufflesuite/ganache-cli#354 #57

Merged
merged 10 commits into from
Jan 23, 2018

Conversation

yarrumretep
Copy link

evm_mine returns true in the result to ensure valid JSON_RPC response.

@yarrumretep
Copy link
Author

@benjamincburns - ok - updated per your direction.

@yarrumretep
Copy link
Author

hrm - travis failed, but i think the tests all pass with both of the latest commits?

@benjamincburns
Copy link
Contributor

benjamincburns commented Jan 23, 2018 via email

@yarrumretep
Copy link
Author

I ticked "allow edits from maintainers" - assume that's what you are referring to.

It's really a minor contribution - but happy to have my feet wet - hopefully I can contribute more meaningfully in the future!

Rock on!

test/mining.js Outdated
if (err) return reject(err);
accept();
if(result.result !== '0x0') return reject(new Error("evm_mine should return result = '0x0':" + JSON.stringify(result)))
Copy link
Contributor

@benjamincburns benjamincburns Jan 23, 2018

Choose a reason for hiding this comment

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

This works fine, but it's more idiomatic to write assert.notDeepEqual(result.result, '0x0')

Copy link
Contributor

Choose a reason for hiding this comment

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

No need to resubmit - I'll change it when I merge

@benjamincburns
Copy link
Contributor

Looks like the test failure was an unrelated test timing out, which seems to happen on the node lte/boron release from time to time. I'm rerunning that build and provided it doesn't fail a second time around, I'll merge.

@benjamincburns benjamincburns self-assigned this Jan 23, 2018
@benjamincburns
Copy link
Contributor

rebased changes on current develop and pushed back to upstream repo prior to merging

@benjamincburns
Copy link
Contributor

Testing snob protip: when one corrects a contributor's nonidiomatic assertion logic, one looks rather foolish when the "correction" breaks the contributor's test. 😂

Fixed ;-)

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.

2 participants