Update hardhat-provider.js

pull/1344/head
Aniket 3 years ago committed by joseph izang
parent 5299f5a828
commit 300d516b0e
  1. 5
      apps/remix-ide/src/app/tabs/hardhat-provider.js

@ -34,8 +34,6 @@ export default class HardhatProvider extends Plugin {
<br>
For more info, visit: <a href="https://hardhat.org/getting-started/#connecting-a-wallet-or-dapp-to-hardhat-network" target="_blank">Hardhat Documentation</a>
<br><br>
<b>Note:</b> Click on 'Cancel' if node is stopped.
<br><br>
Hardhat JSON-RPC Endpoint
</div>
`
@ -75,7 +73,8 @@ export default class HardhatProvider extends Plugin {
resolve(message)
})
} else {
resolve({ jsonrpc: '2.0', result: [], id: data.id })
const result = data.method === 'net_listening' ? 'canceled' : []
resolve({ jsonrpc: '2.0', result: result, id: data.id })
}
}
}

Loading…
Cancel
Save