Skip to content

Commit

Permalink
Update changes to migration guide mistakenly Alonzo era to Babbage era
Browse files Browse the repository at this point in the history
  • Loading branch information
nabinpkl authored Aug 15, 2022
1 parent 3e84138 commit f5ef7c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions migration_guide_alonzo_to_babbge.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
The following are the required changes to make Alonzo transaction builder code to work on Babbage Era. These changes are significant if you're using `cardano-api` library.

## 1. Change Era
If `AlonzoEra` is explicitly used then it needs to be updated to `AlonzoEra` like
If `AlonzoEra` is explicitly used then it needs to be updated to `BabbageEra` like
```haskell
UTxO AlonzoEra -> UTxO AlonzoEra
UTxO AlonzoEra -> UTxO BabbageEra
```

## 2. Change `EraInCardanoMode`
Change `EraInCardanoMode AlonzoEraInCardanoMode` like
```haskell
AlonozoEraInCardanoMode -> AlonzoEraInCardanoMode
AlonozoEraInCardanoMode -> BabbageEraInCardanoMode
```

## 3. Add either `ReferenceScript` or `ReferenceScriptNone` additional field on TxOut
```haskell
TxOut address txOutValue datum ReferenceScriptNone
-- or
TxOut address txOutValue datum (ReferenceScript ReferenceTxInsScriptsInlineDatumsInAlonzoEra script)
TxOut address txOutValue datum (ReferenceScript ReferenceTxInsScriptsInlineDatumsInBabbageEra script)
```

## 4. Change `ScriptWitness` structure
Expand Down

0 comments on commit f5ef7c0

Please sign in to comment.