Skip to content

Commit

Permalink
Merge pull request #4016 from ethereum/fix_simulator_server
Browse files Browse the repository at this point in the history
fix simulator server
  • Loading branch information
yann300 authored Aug 22, 2023
2 parents 405b3c2 + a2dfbee commit ea70c15
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions libs/remix-simulator/bin/ethsim
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@ program
.option('-c, --coinbase [coinbase]', 'specify coinbase', '0x0000000000000000000000000000000000000000')
.option('--rpc', 'run rpc server only', true)
.option('--details', 'display payloads for every requests and their responses', false)
.action(() => {
.action((option) => {
console.log('coinbase: ', option.coinbase)
console.log('rpc: ', option.rpc)
console.log('details: ', option.details)
console.log('host: ', option.ip)
console.log('port: ', option.port)
const Server = require('../src/server')
const server = new Server({
coinbase: program.coinbase,
rpc: program.rpc,
logDetails: program.details
coinbase: option.coinbase,
rpc: option.rpc,
logDetails: option.details
})
server.start(program.host, program.port)
server.start(option.ip, option.port)
})

program.parse(process.argv)
Expand Down

0 comments on commit ea70c15

Please sign in to comment.