Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
fix(sdk): reject promise when failing to deploy contract
Browse files Browse the repository at this point in the history
  • Loading branch information
LeilaWang committed Feb 12, 2020
1 parent b6ad821 commit ef5e982
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/extension/src/utils/Web3Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ class Web3Service {
}
});
}, 1000);
})
.on('error', (error) => {
reject(error);
});
});
}
Expand Down

0 comments on commit ef5e982

Please sign in to comment.