Skip to content

Commit

Permalink
check for existing transactionPath in execHandler (#385)
Browse files Browse the repository at this point in the history
`tryFindTransactionPath` was sometimes being called after `sendTransaction` resolved, which would clear ctx.transactionPath causing the reporter output `ctx.transactionPath[0].description` to fail
  • Loading branch information
mikec authored and 0xGabi committed Aug 7, 2019
1 parent 03bf159 commit 459eca1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports.task = async function(
let wrapper, appsLoaded

const tryFindTransactionPath = async () => {
if (appsLoaded && wrapper) {
if (appsLoaded && wrapper && !ctx.transactionPath) {
try {
ctx.transactionPath = await getTransactionPath(wrapper)
resolve()
Expand Down

0 comments on commit 459eca1

Please sign in to comment.