Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/MyContract_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ contract('MyContract', accounts => {

describe('#fulfill', () => {
const expected = 50000
const response = web3.utils.padRight(web3.utils.toHex(expected), 64)
const response = web3.utils.padLeft(web3.utils.toHex(expected), 64)
let request

beforeEach(async () => {
Expand Down Expand Up @@ -111,8 +111,8 @@ contract('MyContract', accounts => {
it('records the data given to it by the oracle', async () => {
const currentPrice = await cc.data.call()
assert.equal(
web3.utils.toHex(currentPrice),
web3.utils.padRight(expected, 64),
web3.utils.padLeft(web3.utils.toHex(currentPrice), 64),
web3.utils.padLeft(expected, 64),
)
})

Expand Down