Skip to content

Commit d92933f

Browse files
committed
chore: fixed serde for connection redeemer
1 parent 5d1f061 commit d92933f

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

cardano/gateway/src/shared/types/connection/connection-redeemer.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ export async function encodeMintConnectionRedeemer(
105105
const MithrilProtocolParametersSchema = Data.Object({
106106
k: Data.Integer(),
107107
m: Data.Integer(),
108-
phi_f: Data.Nullable(FractionSchema),
108+
phi_f: FractionSchema,
109109
});
110110
const MithrilClientStateSchema = Data.Object({
111111
chain_id: Data.Bytes(),
112-
latest_height: Data.Nullable(MithrilHeightSchema),
113-
frozen_height: Data.Nullable(MithrilHeightSchema),
112+
latest_height: MithrilHeightSchema,
113+
frozen_height: MithrilHeightSchema,
114114
current_epoch: Data.Integer(),
115115
trusting_period: Data.Integer(),
116-
protocol_parameters: Data.Nullable(MithrilProtocolParametersSchema),
116+
protocol_parameters: MithrilProtocolParametersSchema,
117117
upgrade_path: Data.Array(Data.Bytes()),
118118
});
119119
const MintConnectionRedeemerSchema = Data.Enum([
@@ -156,15 +156,15 @@ export async function encodeSpendConnectionRedeemer(
156156
const MithrilProtocolParametersSchema = Data.Object({
157157
k: Data.Integer(),
158158
m: Data.Integer(),
159-
phi_f: Data.Nullable(FractionSchema),
159+
phi_f: FractionSchema,
160160
});
161161
const MithrilClientStateSchema = Data.Object({
162162
chain_id: Data.Bytes(),
163-
latest_height: Data.Nullable(MithrilHeightSchema),
164-
frozen_height: Data.Nullable(MithrilHeightSchema),
163+
latest_height: MithrilHeightSchema,
164+
frozen_height: MithrilHeightSchema,
165165
current_epoch: Data.Integer(),
166166
trusting_period: Data.Integer(),
167-
protocol_parameters: Data.Nullable(MithrilProtocolParametersSchema),
167+
protocol_parameters: MithrilProtocolParametersSchema,
168168
upgrade_path: Data.Array(Data.Bytes()),
169169
});
170170
const LeafOpSchema = Data.Object({
@@ -299,15 +299,15 @@ export function decodeMintConnectionRedeemer(
299299
const MithrilProtocolParametersSchema = Data.Object({
300300
k: Data.Integer(),
301301
m: Data.Integer(),
302-
phi_f: Data.Nullable(FractionSchema),
302+
phi_f: FractionSchema,
303303
});
304304
const MithrilClientStateSchema = Data.Object({
305305
chain_id: Data.Bytes(),
306-
latest_height: Data.Nullable(MithrilHeightSchema),
307-
frozen_height: Data.Nullable(MithrilHeightSchema),
306+
latest_height: MithrilHeightSchema,
307+
frozen_height: MithrilHeightSchema,
308308
current_epoch: Data.Integer(),
309309
trusting_period: Data.Integer(),
310-
protocol_parameters: Data.Nullable(MithrilProtocolParametersSchema),
310+
protocol_parameters: MithrilProtocolParametersSchema,
311311
upgrade_path: Data.Array(Data.Bytes()),
312312
});
313313
const HeightSchema = Data.Object({
@@ -355,15 +355,15 @@ export function decodeSpendConnectionRedeemer(
355355
const MithrilProtocolParametersSchema = Data.Object({
356356
k: Data.Integer(),
357357
m: Data.Integer(),
358-
phi_f: Data.Nullable(FractionSchema),
358+
phi_f: FractionSchema,
359359
});
360360
const MithrilClientStateSchema = Data.Object({
361361
chain_id: Data.Bytes(),
362-
latest_height: Data.Nullable(MithrilHeightSchema),
363-
frozen_height: Data.Nullable(MithrilHeightSchema),
362+
latest_height: MithrilHeightSchema,
363+
frozen_height: MithrilHeightSchema,
364364
current_epoch: Data.Integer(),
365365
trusting_period: Data.Integer(),
366-
protocol_parameters: Data.Nullable(MithrilProtocolParametersSchema),
366+
protocol_parameters: MithrilProtocolParametersSchema,
367367
upgrade_path: Data.Array(Data.Bytes()),
368368
});
369369
const LeafOpSchema = Data.Object({

0 commit comments

Comments
 (0)