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
f8b6ccba
Unverified
Commit
f8b6ccba
authored
Feb 05, 2018
by
Iuri Matias
Committed by
GitHub
Feb 05, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1031 from ethereum/refactor/remove_jquery_dependency
minor refactor: replace jquery util with native js
parents
1cb05f7d
9ed744a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
txFormat.js
src/app/execution/txFormat.js
+1
-2
txHelper.js
src/app/execution/txHelper.js
+3
-11
No files found.
src/app/execution/txFormat.js
View file @
f8b6ccba
'use strict'
'use strict'
var
$
=
require
(
'jquery'
)
var
ethJSABI
=
require
(
'ethereumjs-abi'
)
var
ethJSABI
=
require
(
'ethereumjs-abi'
)
var
ethJSUtil
=
require
(
'ethereumjs-util'
)
var
ethJSUtil
=
require
(
'ethereumjs-util'
)
var
BN
=
ethJSUtil
.
BN
var
BN
=
ethJSUtil
.
BN
...
@@ -55,7 +54,7 @@ module.exports = {
...
@@ -55,7 +54,7 @@ module.exports = {
data
=
Buffer
.
from
(
dataHex
,
'hex'
)
data
=
Buffer
.
from
(
dataHex
,
'hex'
)
}
else
{
}
else
{
try
{
try
{
funArgs
=
$
.
parseJSON
(
'['
+
params
+
']'
)
funArgs
=
JSON
.
parse
(
'['
+
params
+
']'
)
}
catch
(
e
)
{
}
catch
(
e
)
{
callback
(
'Error encoding arguments: '
+
e
)
callback
(
'Error encoding arguments: '
+
e
)
return
return
...
...
src/app/execution/txHelper.js
View file @
f8b6ccba
'use strict'
'use strict'
var
ethJSABI
=
require
(
'ethereumjs-abi'
)
var
ethJSABI
=
require
(
'ethereumjs-abi'
)
var
$
=
require
(
'jquery'
)
module
.
exports
=
{
module
.
exports
=
{
encodeParams
:
function
(
funABI
,
args
)
{
encodeParams
:
function
(
funABI
,
args
)
{
...
@@ -115,15 +114,8 @@ module.exports = {
...
@@ -115,15 +114,8 @@ module.exports = {
},
},
inputParametersDeclarationToString
:
function
(
abiinputs
)
{
inputParametersDeclarationToString
:
function
(
abiinputs
)
{
var
inputs
=
''
var
inputs
=
(
abiinputs
||
[]).
map
((
inp
)
=>
inp
.
type
+
' '
+
inp
.
name
)
if
(
abiinputs
)
{
return
inputs
.
join
(
', '
)
$
.
each
(
abiinputs
,
function
(
i
,
inp
)
{
if
(
inputs
!==
''
)
{
inputs
+=
', '
}
inputs
+=
inp
.
type
+
' '
+
inp
.
name
})
}
return
inputs
}
}
}
}
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