Skip to content

Commit f5ef7c0

Browse files
authored
Update changes to migration guide mistakenly Alonzo era to Babbage era
1 parent 3e84138 commit f5ef7c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

migration_guide_alonzo_to_babbge.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
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.
33

44
## 1. Change Era
5-
If `AlonzoEra` is explicitly used then it needs to be updated to `AlonzoEra` like
5+
If `AlonzoEra` is explicitly used then it needs to be updated to `BabbageEra` like
66
```haskell
7-
UTxO AlonzoEra -> UTxO AlonzoEra
7+
UTxO AlonzoEra -> UTxO BabbageEra
88
```
99

1010
## 2. Change `EraInCardanoMode`
1111
Change `EraInCardanoMode AlonzoEraInCardanoMode` like
1212
```haskell
13-
AlonozoEraInCardanoMode -> AlonzoEraInCardanoMode
13+
AlonozoEraInCardanoMode -> BabbageEraInCardanoMode
1414
```
1515

1616
## 3. Add either `ReferenceScript` or `ReferenceScriptNone` additional field on TxOut
1717
```haskell
1818
TxOut address txOutValue datum ReferenceScriptNone
1919
-- or
20-
TxOut address txOutValue datum (ReferenceScript ReferenceTxInsScriptsInlineDatumsInAlonzoEra script)
20+
TxOut address txOutValue datum (ReferenceScript ReferenceTxInsScriptsInlineDatumsInBabbageEra script)
2121
```
2222

2323
## 4. Change `ScriptWitness` structure

0 commit comments

Comments
 (0)