update ProviderOptions and update typing for server constructor param

pull/4827/head
Zubin Pratap 6 months ago committed by yann300
parent 46d97a25d7
commit 20a1caad49
  1. 1
      libs/remix-simulator/src/provider.ts
  2. 4
      libs/remix-simulator/src/server.ts

@ -38,6 +38,7 @@ export type ProviderOptions = {
logDetails?: boolean
blocks?: string[],
coinbase?: string
rpc?: boolean
}
export class Provider {

@ -2,7 +2,7 @@ import express from 'express'
import cors from 'cors'
import bodyParser from 'body-parser'
import expressWs from 'express-ws'
import { Provider } from './provider'
import { Provider, ProviderOptions } from './provider'
import { log } from './utils/logs'
const app = express()
@ -10,7 +10,7 @@ class Server {
provider
rpcOnly
constructor (options) {
constructor (options?:ProviderOptions) {
this.provider = new Provider(options)
this.provider.init().then(() => {
log('Provider initiated')

Loading…
Cancel
Save