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

Flickering test fix #323

Merged
merged 6 commits into from
Apr 17, 2020
Merged

Flickering test fix #323

merged 6 commits into from
Apr 17, 2020

Conversation

shahafn
Copy link
Member

@shahafn shahafn commented Apr 17, 2020

Blast from the past: ethereumjs/ethereumjs-monorepo#710

Alex and I already discussed this issue and commented on their open issue in their repo, which still exists.

@shahafn shahafn requested review from drortirosh and forshtat April 17, 2020 02:02
@shahafn shahafn changed the title Test fix Flickering test fix Apr 17, 2020
Comment on lines 435 to 436
// const signature = `0x${'00'.repeat(32 - tx.r.length) + tx.r.toString('hex')}${'00'.repeat(
// 32 - tx.s.length) + tx.s.toString('hex')}${v.toString(16)}`
Copy link
Member

Choose a reason for hiding this comment

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

-

Comment on lines 377 to 380
// This doesn't work since they are "read only"
// transaction.r = Buffer.concat([Buffer.from('00'.repeat(32 - transaction.r.length),'hex'), transaction.r])
// transaction.s = Buffer.concat([Buffer.from('00'.repeat(32 - transaction.s.length),'hex'), transaction.s])
// This does work, but is ugly and involves knowing the implementation details of ethereumjs-tx.Transaction class
Copy link
Member

Choose a reason for hiding this comment

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

-

@shahafn shahafn merged commit e88c97a into master Apr 17, 2020
@shahafn shahafn deleted the test-fix branch April 17, 2020 14:35
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.

2 participants