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
99b51f6d
Commit
99b51f6d
authored
Aug 31, 2016
by
chriseth
Committed by
GitHub
Aug 31, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #190 from ethereum/fix-event-crashes
Do not crash if event is not found in the ABI
parents
7698da2e
a731bf5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
universal-dapp.js
src/universal-dapp.js
+3
-2
No files found.
src/universal-dapp.js
View file @
99b51f6d
...
@@ -253,11 +253,12 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
...
@@ -253,11 +253,12 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
for
(
var
i
in
response
.
vm
.
logs
)
{
for
(
var
i
in
response
.
vm
.
logs
)
{
// [address, topics, mem]
// [address, topics, mem]
var
log
=
response
.
vm
.
logs
[
i
];
var
log
=
response
.
vm
.
logs
[
i
];
var
abi
=
eventABI
[
log
[
1
][
0
].
toString
(
'hex'
)];
var
event
;
var
event
=
abi
.
event
;
var
decoded
;
var
decoded
;
try
{
try
{
var
abi
=
eventABI
[
log
[
1
][
0
].
toString
(
'hex'
)];
event
=
abi
.
event
;
var
types
=
abi
.
inputs
.
map
(
function
(
item
)
{
var
types
=
abi
.
inputs
.
map
(
function
(
item
)
{
return
item
.
type
;
return
item
.
type
;
});
});
...
...
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