diff --git a/src/types/Args.ts b/src/types/Args.ts index 4d7b317a..bccfc74a 100644 --- a/src/types/Args.ts +++ b/src/types/Args.ts @@ -122,7 +122,7 @@ export class Args { * The map of argument names to `CLValue` values. */ @jsonMapMember(String, CLValue, { - serializer: serRA, + serializer: (map: Map) => serRA(map), deserializer: desRA }) public args: Map; diff --git a/src/types/EraEnd.ts b/src/types/EraEnd.ts index adeb74c5..cf497062 100644 --- a/src/types/EraEnd.ts +++ b/src/types/EraEnd.ts @@ -142,7 +142,7 @@ export class EraEndV2 { */ @jsonMapMember(String, Array, { name: 'rewards', - serializer: serializeRewards, + serializer: (map: Map) => serializeRewards(map), deserializer: deserializeRewards }) public rewards: Map; @@ -252,7 +252,7 @@ export class EraEnd { @jsonMapMember(String, CLValueUInt512, { name: 'rewards', deserializer: deserializeRewards, - serializer: serializeRewards + serializer: (map: Map) => serializeRewards(map), }) public rewards: Map; diff --git a/src/types/ExecutableDeployItem.ts b/src/types/ExecutableDeployItem.ts index 4d34d325..2ef78288 100644 --- a/src/types/ExecutableDeployItem.ts +++ b/src/types/ExecutableDeployItem.ts @@ -46,7 +46,7 @@ export class ModuleBytes { @jsonMember({ name: 'module_bytes', constructor: Uint8Array, - serializer: byteArrayJsonSerializer, + serializer: (bytes: Uint8Array) => byteArrayJsonSerializer(bytes), deserializer: byteArrayJsonDeserializer }) moduleBytes!: Uint8Array; @@ -56,7 +56,7 @@ export class ModuleBytes { */ @jsonMember(() => Args, { deserializer: deserializeArgs, - serializer: serializeArgs + serializer: (args: Args) => serializeArgs(args, false) }) args: Args; @@ -120,7 +120,7 @@ export class StoredContractByHash { */ @jsonMember(() => Args, { deserializer: deserializeArgs, - serializer: serializeArgs + serializer: (args: Args) => serializeArgs(args, false) }) args: Args; @@ -171,7 +171,7 @@ export class StoredContractByName { */ @jsonMember(() => Args, { deserializer: deserializeArgs, - serializer: serializeArgs + serializer: (args: Args) => serializeArgs(args, false) }) args: Args; @@ -227,7 +227,7 @@ export class StoredVersionedContractByHash { */ @jsonMember(() => Args, { deserializer: deserializeArgs, - serializer: serializeArgs + serializer: (args: Args) => serializeArgs(args, false) }) args: Args; @@ -302,7 +302,7 @@ export class StoredVersionedContractByName { */ @jsonMember(() => Args, { deserializer: deserializeArgs, - serializer: serializeArgs + serializer: (args: Args) => serializeArgs(args, false) }) args: Args; @@ -348,7 +348,7 @@ export class TransferDeployItem { */ @jsonMember(() => Args, { deserializer: deserializeArgs, - serializer: serializeArgs + serializer: (args: Args) => serializeArgs(args, false) }) args: Args; diff --git a/src/types/Transaction.ts b/src/types/Transaction.ts index cdb61d4c..7e20b8d9 100644 --- a/src/types/Transaction.ts +++ b/src/types/Transaction.ts @@ -336,7 +336,7 @@ export class Transaction { */ @jsonMember(() => Args, { deserializer: deserializeArgs, - serializer: serializeArgs + serializer: (args: Args) => serializeArgs(args, false) }) public args: Args; diff --git a/src/types/Transform.ts b/src/types/Transform.ts index d35028e8..1adda701 100644 --- a/src/types/Transform.ts +++ b/src/types/Transform.ts @@ -517,7 +517,7 @@ export class NamedKeyKind { */ @jsonMember(() => Args, { deserializer: deserializeArgs, - serializer: serializeArgs + serializer: (args: Args) => serializeArgs(args, false) }) public namedKey: Args; @@ -526,7 +526,7 @@ export class NamedKeyKind { */ @jsonMember(() => Args, { deserializer: deserializeArgs, - serializer: serializeArgs + serializer: (args: Args) => serializeArgs(args, false) }) public name: Args; } diff --git a/src/types/TransformRaw.ts b/src/types/TransformRaw.ts index 91b0e214..c2b22ae4 100644 --- a/src/types/TransformRaw.ts +++ b/src/types/TransformRaw.ts @@ -237,7 +237,7 @@ export class RawWriteCLValue { */ @jsonMember(() => Args, { deserializer: deserializeArgs, - serializer: serializeArgs, + serializer: (args: Args) => serializeArgs(args, false), name: 'WriteCLValue' }) WriteCLValue?: Args; @@ -253,7 +253,7 @@ export class WriteCLValue { */ @jsonMember(() => Args, { deserializer: deserializeArgs, - serializer: serializeArgs, + serializer: (args: Args) => serializeArgs(args, false), name: 'CLValue' }) CLValue?: Args;