Skip to content

Commit 0220798

Browse files
committed
Allegra/Mary CDDLs: make transaction_body field 3 optional
1 parent 1e164b9 commit 0220798

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

eras/allegra/impl/cddl-files/allegra.cddl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ transaction_body =
5555
{ 0 : set<transaction_input>
5656
, 1 : [* transaction_output]
5757
, 2 : coin
58-
, 3 : uint
58+
, ? 3 : uint
5959
, ? 4 : [* certificate]
6060
, ? 5 : withdrawals
6161
, ? 6 : update

eras/allegra/impl/testlib/Test/Cardano/Ledger/Allegra/CDDL.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ transaction_body =
8787
[ idx 0 ==> set transaction_input
8888
, idx 1 ==> arr [0 <+ a transaction_output]
8989
, idx 2 ==> coin
90-
, idx 3 ==> VUInt
90+
, opt (idx 3 ==> VUInt)
9191
, opt (idx 4 ==> arr [0 <+ a certificate])
9292
, opt (idx 5 ==> withdrawals)
9393
, opt (idx 6 ==> update)

eras/mary/impl/cddl-files/mary.cddl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ transaction_body =
5454
{ 0 : set<transaction_input>
5555
, 1 : [* transaction_output]
5656
, 2 : coin
57-
, 3 : uint
57+
, ? 3 : uint
5858
, ? 4 : [* certificate]
5959
, ? 5 : withdrawals
6060
, ? 6 : update

eras/mary/impl/testlib/Test/Cardano/Ledger/Mary/CDDL.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ transaction_body =
4949
[ idx 0 ==> set transaction_input
5050
, idx 1 ==> arr [0 <+ a transaction_output]
5151
, idx 2 ==> coin
52-
, idx 3 ==> VUInt
52+
, opt (idx 3 ==> VUInt)
5353
, opt (idx 4 ==> arr [0 <+ a certificate])
5454
, opt (idx 5 ==> withdrawals)
5555
, opt (idx 6 ==> update)

0 commit comments

Comments
 (0)