Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #66 from ethereum/bump2
Browse files Browse the repository at this point in the history
Fix use last remixd
  • Loading branch information
yann300 authored Jul 28, 2021
2 parents 0362da9 + eb1c1ee commit 5a80366
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as fs from 'fs-extra'
import { services, Websocket, utils } from '@remix-project/remixd'
const fs = require('fs')
const remixd = require('@remix-project/remixd')
const utils = remixd.utils
const path = require('path')
const os = require('os')
const fetch = require('node-fetch')
Expand Down Expand Up @@ -79,9 +80,9 @@ function createWindow () {
})
}

let sharedFolderClient = new services.sharedFolder()
let slitherClient = new services.SlitherClient()
let hardhatClient = new services.HardhatClient()
let sharedFolderClient = new remixd.services.sharedFolder()
let slitherClient = new remixd.services.SlitherClient()
let hardhatClient = new remixd.services.HardhatClient()
const services = {
hardhat: () => {
hardhatClient.options.customApi = {}
Expand Down Expand Up @@ -120,7 +121,7 @@ const ports = {

function startService (service, callback) {
try {
const socket = new Websocket(ports[service], { remixIdeUrl }, () => services[service]())
const socket = new remix.Websocket(ports[service], { remixIdeUrl }, () => services[service]())
socket.start(callback)
} catch (e) {
console.error(e)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.3.0",
"version": "1.3.1",
"name": "remix-ide",
"description": "Remix - Ethereum IDE",
"main": "main.js",
Expand Down

0 comments on commit 5a80366

Please sign in to comment.