make linter happy

pull/7/head
Iuri Matias 6 years ago
parent 6b765f9556
commit ac9d7b0c19
  1. 34
      remix-simulator/src/methods/transactions.js
  2. 5
      remix-simulator/test/blocks.js

@ -97,23 +97,23 @@ Transactions.prototype.eth_getTransactionByHash = function (payload, cb) {
return cb(error)
}
//executionContext.web3().eth.getBlock(receipt.hash).then((block) => {
const r = {
'hash': receipt.transactionHash,
// "nonce": 2,
'blockHash': receipt.hash,
//'blockNumber': block.number,
// "transactionIndex": 0,
'from': receipt.from,
'to': receipt.to,
'value': receipt.value,
'gas': receipt.gas,
'gasPrice': '2000000000000',
'input': receipt.input
}
cb(null, r)
//})
// executionContext.web3().eth.getBlock(receipt.hash).then((block) => {
const r = {
'hash': receipt.transactionHash,
// "nonce": 2,
'blockHash': receipt.hash,
// 'blockNumber': block.number,
// "transactionIndex": 0,
'from': receipt.from,
'to': receipt.to,
'value': receipt.value,
'gas': receipt.gas,
'gasPrice': '2000000000000',
'input': receipt.input
}
cb(null, r)
// })
})
}

@ -7,7 +7,7 @@ var assert = require('assert')
describe('blocks', function () {
before(function () {
let provider = new RemixSim.Provider({
coinbase: "0x0000000000000000000000000000000000000001"
coinbase: '0x0000000000000000000000000000000000000001'
})
web3.setProvider(provider)
})
@ -48,7 +48,6 @@ describe('blocks', function () {
it('should get coinbase', async function () {
let coinbase = await web3.eth.getCoinbase()
assert.equal(coinbase, "0x0000000000000000000000000000000000000001")
assert.equal(coinbase, '0x0000000000000000000000000000000000000001')
})
})

Loading…
Cancel
Save