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
95fd8aa9
Unverified
Commit
95fd8aa9
authored
Sep 17, 2019
by
Aniket
Committed by
GitHub
Sep 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added comments
parent
836beecb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
txFormat.js
remix-lib/src/execution/txFormat.js
+5
-0
No files found.
remix-lib/src/execution/txFormat.js
View file @
95fd8aa9
...
...
@@ -180,16 +180,21 @@ module.exports = {
}
else
{
try
{
if
(
params
.
length
>
0
)
{
// Segregate params textbox string with respect to comma (,)
params
=
params
.
split
(
','
)
for
(
let
i
=
0
;
i
<
params
.
length
;
i
++
)
{
let
param
=
params
[
i
].
trim
()
// Check if param starts with " , it may be string, address etc.
if
(
param
.
charAt
(
0
)
===
'"'
)
{
// Check if param completes in one location by looking for end quote (case: address data type)
if
(
param
.
charAt
(
param
.
length
-
1
)
===
'"'
)
{
funArgs
.
push
(
param
.
slice
(
1
,
param
.
length
-
1
))
}
else
{
let
lastIndex
=
false
let
paramStr
=
param
.
slice
(
1
,
param
.
length
)
// For a paramter got divided in multiple location(case: string data type containing comma(,))
for
(
let
j
=
i
+
1
;
!
lastIndex
;
j
++
)
{
// Check if end quote is reached
if
(
params
[
j
].
charAt
(
params
[
j
].
length
-
1
)
===
'"'
)
{
paramStr
+=
','
+
params
[
j
].
slice
(
0
,
params
[
j
].
length
-
1
)
i
=
j
...
...
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