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
b9635686
Commit
b9635686
authored
Feb 15, 2021
by
aniket-engg
Committed by
Aniket
Feb 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #826
parent
8ecfd068
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
contractDropdown.js
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
+4
-2
No files found.
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
View file @
b9635686
import
publishToStorage
from
'../../../publishToStorage'
const
yo
=
require
(
'yo-yo'
)
const
ethJSUtil
=
require
(
'ethereumjs-util'
)
const
css
=
require
(
'../styles/run-tab-styles'
)
const
modalDialogCustom
=
require
(
'../../ui/modal-dialog-custom'
)
const
remixLib
=
require
(
'@remix-project/remix-lib'
)
...
...
@@ -97,7 +97,9 @@ class ContractDropdownUI {
enableAtAddress
(
enable
)
{
if
(
enable
)
{
if
(
this
.
atAddressButtonInput
.
value
===
''
)
return
const
address
=
this
.
atAddressButtonInput
.
value
if
(
!
address
||
!
ethJSUtil
.
isValidAddress
(
address
)
||
(
/
[
a-f
]
/
.
test
(
address
)
&&
/
[
A-F
]
/
.
test
(
address
)
&&
!
ethJSUtil
.
isValidChecksumAddress
(
address
)))
return
this
.
atAddress
.
removeAttribute
(
'disabled'
)
this
.
atAddress
.
setAttribute
(
'title'
,
'Interact with the given contract.'
)
}
else
{
...
...
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