use export keyword

pull/4827/head
yann300 6 months ago
parent 20a1caad49
commit 834752c0fa
  1. 2
      libs/remix-simulator/bin/ethsim
  2. 2
      libs/remix-simulator/src/index.ts
  3. 3
      libs/remix-simulator/src/server.ts

@ -32,7 +32,7 @@ program
console.log('details: ', option.details)
console.log('host: ', option.ip)
console.log('port: ', option.port)
const Server = require('../src/server')
const { Server } = require('../src/server')
const server = new Server({
coinbase: option.coinbase,
rpc: option.rpc,

@ -1,2 +1,2 @@
export { Provider, extend, JSONRPCRequestPayload, JSONRPCResponsePayload, JSONRPCResponseCallback } from './provider'
export * as Server from './server'
export { Server } from './server'

@ -6,7 +6,7 @@ import { Provider, ProviderOptions } from './provider'
import { log } from './utils/logs'
const app = express()
class Server {
export class Server {
provider
rpcOnly
@ -68,4 +68,3 @@ class Server {
}
}
module.exports = Server

Loading…
Cancel
Save