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
609f7df9
Commit
609f7df9
authored
May 06, 2021
by
lianahus
Committed by
Liana Husikyan
May 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto checksuming address for atAddress
parent
325bfd33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
contractDropdown.js
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
+8
-2
No files found.
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
View file @
609f7df9
...
...
@@ -97,7 +97,10 @@ class ContractDropdownUI {
enableAtAddress
(
enable
)
{
if
(
enable
)
{
const
address
=
this
.
atAddressButtonInput
.
value
if
(
!
address
||
!
ethJSUtil
.
isValidChecksumAddress
(
address
))
return
if
(
!
address
||
!
ethJSUtil
.
isValidAddress
(
address
))
{
this
.
enableAtAddress
(
false
)
return
}
this
.
atAddress
.
removeAttribute
(
'disabled'
)
this
.
atAddress
.
setAttribute
(
'title'
,
'Interact with the given contract.'
)
}
else
{
...
...
@@ -387,7 +390,10 @@ class ContractDropdownUI {
loadFromAddress
()
{
this
.
event
.
trigger
(
'clearInstance'
)
var
address
=
this
.
atAddressButtonInput
.
value
let
address
=
this
.
atAddressButtonInput
.
value
if
(
!
ethJSUtil
.
isValidChecksumAddress
(
address
))
{
address
=
ethJSUtil
.
toChecksumAddress
(
address
)
}
this
.
dropdownLogic
.
loadContractFromAddress
(
address
,
(
cb
)
=>
{
modalDialogCustom
.
confirm
(
null
,
'Do you really want to interact with '
+
address
+
' using the current ABI definition?'
,
cb
)
...
...
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