From 3130eeff688e876889a6d5201622718a1454df3b Mon Sep 17 00:00:00 2001 From: Arjan Zijderveld <5286904+arjanz@users.noreply.github.com> Date: Tue, 11 Jun 2024 16:43:25 +0200 Subject: [PATCH] CheckMetadataHash signed extension support (#120) --- scalecodec/types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scalecodec/types.py b/scalecodec/types.py index e50b10b..0415867 100644 --- a/scalecodec/types.py +++ b/scalecodec/types.py @@ -2976,6 +2976,9 @@ def __init__(self, *args, **kwargs): if 'ChargeAssetTxPayment' in signed_extensions: self.type_mapping.append(['asset_id', signed_extensions['ChargeAssetTxPayment']['extrinsic']]) + if 'CheckMetadataHash' in signed_extensions: + self.type_mapping.append(['mode', signed_extensions['CheckMetadataHash']['extrinsic']]) + self.type_mapping.append(['call', 'Call']) super().__init__(*args, **kwargs)