fix compiler input ref

pull/7/head
yann300 7 years ago
parent b2d9ae0a23
commit 80e0f20c78
  1. 24
      remix-solidity/test/decoder/storageDecoder.js
  2. 24
      remix-solidity/test/decoder/storageLocation.js

@ -3,6 +3,8 @@ var tape = require('tape')
var compiler = require('solc')
var stateDecoder = require('../../src/decoder/stateDecoder')
var MockStorageResolver = require('./mockStorageResolver')
var remixLib = require('remix-lib')
var compilerInput = remixLib.helpers.compiler.compilerInput
tape('solidity', function (t) {
t.test('storage decoder', function (st) {
@ -269,25 +271,3 @@ function testStructArrayStorage (st, cb) {
cb()
})
}
function compilerInput (contracts) {
return JSON.stringify({
language: 'Solidity',
sources: {
'test.sol': {
content: contracts
}
},
settings: {
optimizer: {
enabled: false,
runs: 500
}
},
outputSelection: {
'*': {
'*': [ 'metadata', 'evm.bytecode', 'abi', 'legacyAST', 'metadata', 'evm.assembly', 'evm.methodIdentifiers', 'evm.gasEstimates' ]
}
}
})
}

@ -3,6 +3,8 @@ var tape = require('tape')
var compiler = require('solc')
var stateDecoder = require('../../src/decoder/stateDecoder')
var contracts = require('./contracts/miscContracts')
var remixLib = require('remix-lib')
var compilerInput = remixLib.helpers.compiler.compilerInput
tape('solidity', function (t) {
t.test('storage location', function (st) {
@ -55,25 +57,3 @@ function checkLocation (st, location, slot, offset) {
st.equal(location.offset, offset)
st.equal(location.slot, slot)
}
function compilerInput (contracts) {
return JSON.stringify({
language: 'Solidity',
sources: {
'test.sol': {
content: contracts
}
},
settings: {
optimizer: {
enabled: false,
runs: 500
}
},
outputSelection: {
'*': {
'*': [ 'metadata', 'evm.bytecode', 'abi', 'legacyAST', 'metadata', 'evm.assembly', 'evm.methodIdentifiers', 'evm.gasEstimates' ]
}
}
})
}

Loading…
Cancel
Save