Skip to content

Commit

Permalink
fix forEach error with vm.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
troggy committed Aug 22, 2019
1 parent 69b4c9a commit 7832c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tx/applyTx/checkSpendCond.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ module.exports = async (state, tx, bridgeState, nodeConfig = {}) => {

const logOuts = [];
// iterate through all events
evmResult.vm.logs.forEach(log => {
(evmResult.vm.logs || []).forEach(log => {
const originAddr = `0x${log[0].toString('hex')}`;
const topics = log[1];
const data = log[2];
Expand Down

0 comments on commit 7832c7b

Please sign in to comment.