You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: migration_guide_alonzo_to_babbge.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,22 @@
2
2
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.
3
3
4
4
## 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
6
6
```haskell
7
-
UTxOAlonzoEra->UTxOAlonzoEra
7
+
UTxOAlonzoEra->UTxOBabbageEra
8
8
```
9
9
10
10
## 2. Change `EraInCardanoMode`
11
11
Change `EraInCardanoMode AlonzoEraInCardanoMode` like
12
12
```haskell
13
-
AlonozoEraInCardanoMode->AlonzoEraInCardanoMode
13
+
AlonozoEraInCardanoMode->BabbageEraInCardanoMode
14
14
```
15
15
16
16
## 3. Add either `ReferenceScript` or `ReferenceScriptNone` additional field on TxOut
17
17
```haskell
18
18
TxOut address txOutValue datum ReferenceScriptNone
19
19
-- or
20
-
TxOut address txOutValue datum (ReferenceScriptReferenceTxInsScriptsInlineDatumsInAlonzoEra script)
20
+
TxOut address txOutValue datum (ReferenceScriptReferenceTxInsScriptsInlineDatumsInBabbageEra script)
0 commit comments