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) return cb(error)
} }
//executionContext.web3().eth.getBlock(receipt.hash).then((block) => { // executionContext.web3().eth.getBlock(receipt.hash).then((block) => {
const r = { const r = {
'hash': receipt.transactionHash, 'hash': receipt.transactionHash,
// "nonce": 2, // "nonce": 2,
'blockHash': receipt.hash, 'blockHash': receipt.hash,
//'blockNumber': block.number, // 'blockNumber': block.number,
// "transactionIndex": 0, // "transactionIndex": 0,
'from': receipt.from, 'from': receipt.from,
'to': receipt.to, 'to': receipt.to,
'value': receipt.value, 'value': receipt.value,
'gas': receipt.gas, 'gas': receipt.gas,
'gasPrice': '2000000000000', 'gasPrice': '2000000000000',
'input': receipt.input 'input': receipt.input
} }
cb(null, r) cb(null, r)
//}) // })
}) })
} }

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

Loading…
Cancel
Save