Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
5ec31dd8
Commit
5ec31dd8
authored
Jun 22, 2021
by
aniket-engg
Committed by
Aniket
Jun 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
specific error on tooltip
parent
c8bc5ae3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
hardhat-provider.js
apps/remix-ide/src/app/tabs/hardhat-provider.js
+3
-0
No files found.
apps/remix-ide/src/app/tabs/hardhat-provider.js
View file @
5ec31dd8
...
...
@@ -59,6 +59,9 @@ export default class HardhatProvider extends Plugin {
sendAsyncInternal
(
data
,
resolve
,
reject
)
{
if
(
this
.
provider
)
{
// Check the case where current environment is VM on UI and it still sends RPC requests
// This will be displayed on UI tooltip as 'cannot get account list: Environment Updated !!'
if
(
this
.
blockchain
.
getProvider
()
!==
'Hardhat Provider'
&&
data
.
method
!==
'net_listening'
)
return
reject
(
new
Error
(
'Environment Updated !!'
))
this
.
provider
[
this
.
provider
.
sendAsync
?
'sendAsync'
:
'send'
](
data
,
(
error
,
message
)
=>
{
if
(
error
)
{
this
.
provider
=
null
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment