Skip to content

Commit ca6f76e

Browse files
authored
fix(ledger): preallocate correct conway pparam update size (#1201)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 49d088e commit ca6f76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ledger/conway/pparams.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func (u *ConwayProtocolParameterUpdate) UnmarshalCBOR(cborData []byte) error {
390390
}
391391

392392
func (u ConwayProtocolParameterUpdate) ToPlutusData() data.PlutusData {
393-
tmpPairs := make([][2]data.PlutusData, 0, 30)
393+
tmpPairs := make([][2]data.PlutusData, 0, 33)
394394
push := func(idx int, pd data.PlutusData) {
395395
tmpPairs = append(
396396
tmpPairs,

0 commit comments

Comments
 (0)