Skip to content

Commit

Permalink
add colort tips
Browse files Browse the repository at this point in the history
  • Loading branch information
zhfnjust committed Jan 25, 2024
1 parent 8713062 commit 8662bb5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/advanced/how-to-debug-scriptcontext.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,11 @@ and you will see the comparison result:

![diffoutputs](../../static/img/diffoutputs.png)


If the outputs of the transaction is inconsistent with the outputs expected by the contract:

1. Outputs of the transaction is marked green.
2. Outputs expected by the contract is marked red.
3. Identical parts are marked in gray.

Through the printed comparison results, we can intuitively see that the number of satoshis included in the output calculated in the contract is different from the number of satoshis included in the output actually added when constructing the transaction. Now, we have found the source of the error.

0 comments on commit 8662bb5

Please sign in to comment.