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
0cafaeef
Commit
0cafaeef
authored
Apr 18, 2016
by
chriseth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #144 from axic/patch/show-web3-encoding-error
Display web3 encoding error
parents
e44ceb83
fdeae6bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
universal-dapp.js
assets/js/universal-dapp.js
+8
-2
No files found.
assets/js/universal-dapp.js
View file @
0cafaeef
...
...
@@ -287,8 +287,14 @@ UniversalDApp.prototype.getCallButton = function(args) {
return
;
}
var
data
=
''
;
if
(
!
isConstructor
||
funArgs
.
length
>
0
)
data
=
args
.
encode
(
funArgs
);
if
(
!
isConstructor
||
funArgs
.
length
>
0
)
{
try
{
data
=
args
.
encode
(
funArgs
);
}
catch
(
e
)
{
replaceOutput
(
$result
,
$
(
'<span/>'
).
text
(
'Error encoding arguments: '
+
e
));
return
;
}
}
if
(
data
.
slice
(
0
,
9
)
==
'undefined'
)
data
=
data
.
slice
(
9
);
if
(
data
.
slice
(
0
,
2
)
==
'0x'
)
data
=
data
.
slice
(
2
);
...
...
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