Skip to content

Convert evm/test/Oracle_test.js to ethers#1815

Merged
HenryNguyen5 merged 7 commits intodevelopfrom
chore/type_evm_tests_8
Nov 1, 2019
Merged

Convert evm/test/Oracle_test.js to ethers#1815
HenryNguyen5 merged 7 commits intodevelopfrom
chore/type_evm_tests_8

Conversation

@HenryNguyen5
Copy link
Copy Markdown
Contributor

No description provided.

@HenryNguyen5 HenryNguyen5 requested a review from se3000 October 24, 2019 22:14
Comment thread evm/testv2/Oracle.test.ts
await maliciousRequester.request(
specId,
link.address,
ethers.utils.toUtf8Bytes('transfer(address,uint256)'),
Copy link
Copy Markdown
Contributor Author

@HenryNguyen5 HenryNguyen5 Oct 24, 2019

Choose a reason for hiding this comment

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

@se3000 I'm encoding the function signatures as utf8 in byte form, when previously we were calling h.toHex which would call the following code

Buffer.from(arg, 'ascii').toString('hex')

, so it would be the same resulting output.
Is this how it should be? Or should we consider passing in the sighash of the function in another PR since this would change test behaviour?

j16r
j16r previously approved these changes Oct 25, 2019
rupurt
rupurt previously approved these changes Oct 31, 2019
@HenryNguyen5 HenryNguyen5 merged commit b1cd8d3 into develop Nov 1, 2019
@HenryNguyen5 HenryNguyen5 deleted the chore/type_evm_tests_8 branch November 25, 2019 23: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.

3 participants