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
d16d25e6
Commit
d16d25e6
authored
Mar 14, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move typeConversion into remixLib
parent
ca7de9a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
44 deletions
+2
-44
txLogger.js
src/app/execution/txLogger.js
+1
-1
typeConversion.js
src/app/execution/typeConversion.js
+0
-42
universal-dapp.js
src/universal-dapp.js
+1
-1
No files found.
src/app/execution/txLogger.js
View file @
d16d25e6
...
...
@@ -12,7 +12,7 @@ var EventManager = remixLib.EventManager
var
helper
=
require
(
'../../lib/helper'
)
var
executionContext
=
require
(
'../../execution-context'
)
var
modalDialog
=
require
(
'../ui/modal-dialog-custom'
)
var
typeConversion
=
re
quire
(
'./typeConversion'
)
var
typeConversion
=
re
mixLib
.
execution
.
typeConversion
var
css
=
csjs
`
.log {
...
...
src/app/execution/typeConversion.js
deleted
100644 → 0
View file @
ca7de9a9
'use strict'
var
ethJSUtil
=
require
(
'ethereumjs-util'
)
var
BN
=
ethJSUtil
.
BN
module
.
exports
=
{
toInt
:
(
h
)
=>
{
if
(
h
.
indexOf
&&
h
.
indexOf
(
'0x'
)
===
0
)
{
return
(
new
BN
(
h
.
replace
(
'0x'
,
''
),
16
)).
toString
(
10
)
}
else
if
(
h
.
constructor
&&
h
.
constructor
.
name
===
'BigNumber'
||
BN
.
isBN
(
h
))
{
return
h
.
toString
(
10
)
}
return
h
},
stringify
:
stringify
}
function
stringify
(
v
)
{
try
{
if
(
v
instanceof
Array
)
{
var
ret
=
[]
for
(
var
k
in
v
)
{
ret
.
push
(
stringify
(
v
[
k
]))
}
return
ret
}
else
if
(
BN
.
isBN
(
v
)
||
(
v
.
constructor
&&
v
.
constructor
.
name
===
'BigNumber'
))
{
return
v
.
toString
(
10
)
}
else
if
(
v
.
_isBuffer
)
{
return
ethJSUtil
.
bufferToHex
(
v
)
}
else
if
(
typeof
v
===
'object'
)
{
var
retObject
=
{}
for
(
var
i
in
v
)
{
retObject
[
i
]
=
stringify
(
v
[
i
])
}
return
retObject
}
else
{
return
v
}
}
catch
(
e
)
{
console
.
log
(
e
)
return
v
}
}
src/universal-dapp.js
View file @
d16d25e6
...
...
@@ -17,7 +17,7 @@ var modalCustom = require('./app/ui/modal-dialog-custom')
var
uiUtil
=
require
(
'./app/ui/util'
)
var
modalDialog
=
require
(
'./app/ui/modaldialog'
)
var
typeConversion
=
re
quire
(
'./app/execution/typeConversion'
)
var
typeConversion
=
re
mixLib
.
execution
.
typeConversion
var
confirmDialog
=
require
(
'./app/execution/confirmDialog'
)
/*
...
...
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