user5008: I have this error when compiling Week01 from Pioneer Program:
error:
• Couldn't match type ‘Either SomeCardanoApiTx Tx’ with ‘Tx’
  Expected type: Tx
    Actual type: CardanoTx
• In the first argument of ‘txId’, namely ‘ledgerTx’
  In the second argument of ‘($)’, namely ‘txId ledgerTx’
  In the second argument of ‘($)’, namely
    ‘awaitTxConfirmed $ txId ledgerTx’

void $ awaitTxConfirmed $ txId ledgerTx

How to fix the error?

user5005: You must have built Plutus from the latest commit, some things have changed I believe. The reason is submitTxConstraintsWith returns a type of Contract w s e CardanoTx but txId requires the type Tx. Replace TxId with getCardanoTxId and it should work.
If you want to follow the Pioneer Program tutorials you need to build with the commit hash used in the lectures, for lesson 1 it is: ea0ca4e9f9821a9dbfc5255fa0f42b6f2b3887c4

5008: <p>I have this error when compiling Week01 from Pioneer Program:</p>
<pre><code>error:
• Couldn't match type ‘Either SomeCardanoApiTx Tx’ with ‘Tx’
  Expected type: Tx
    Actual type: CardanoTx
• In the first argument of ‘txId’, namely ‘ledgerTx’
  In the second argument of ‘($)’, namely ‘txId ledgerTx’
  In the second argument of ‘($)’, namely
    ‘awaitTxConfirmed $ txId ledgerTx’

void $ awaitTxConfirmed $ txId ledgerTx
</code></pre>
<p>How to fix the error?</p>
 5005: <p>You must have built Plutus from the latest commit, some things have changed I believe. The reason is <code>submitTxConstraintsWith</code> returns a type of <code>Contract w s e CardanoTx</code> but <code>txId</code> requires the type <code>Tx</code>. Replace <code>TxId</code> with <code>getCardanoTxId</code> and it should work.</p>
<p>If you want to follow the Pioneer Program tutorials you need to build with the commit hash used in the lectures, for lesson 1 it is: <code>ea0ca4e9f9821a9dbfc5255fa0f42b6f2b3887c4</code></p>
