Skip to content

Commit c3349a2

Browse files
authored
fix: correct Address PlutusData for stake key (#1152)
Signed-off-by: Aurora Gaffney <[email protected]>
1 parent 42b1155 commit c3349a2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ledger/common/address.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,10 @@ func (a *Address) ToPlutusData() data.PlutusData {
352352
}
353353
stakePd = data.NewConstr(
354354
0,
355-
tmpCred.ToPlutusData(),
355+
data.NewConstr(
356+
0,
357+
tmpCred.ToPlutusData(),
358+
),
356359
)
357360
case AddressTypeKeyScript, AddressTypeScriptScript, AddressTypeNoneScript:
358361
tmpCred := &Credential{
@@ -361,7 +364,10 @@ func (a *Address) ToPlutusData() data.PlutusData {
361364
}
362365
stakePd = data.NewConstr(
363366
0,
364-
tmpCred.ToPlutusData(),
367+
data.NewConstr(
368+
0,
369+
tmpCred.ToPlutusData(),
370+
),
365371
)
366372
case AddressTypeKeyNone, AddressTypeScriptNone:
367373
stakePd = data.NewConstr(1)

0 commit comments

Comments
 (0)