Skip to content

Commit

Permalink
Also include extrinsic hash for unsigned extrinsics (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanz committed Sep 13, 2023
1 parent 045b348 commit 4dbd98a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scalecodec/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2884,10 +2884,10 @@ def process(self):
extrinsic_version = extrinsic_versions[extrinsic_version_idx]

self.value_object.update(self.process_type(extrinsic_version, metadata=self.metadata).value_object)
value['extrinsic_hash'] = f'0x{self.extrinsic_hash.hex()}'
else:
self.value_object.update(self.process_type('Inherent', metadata=self.metadata).value_object)
value['extrinsic_hash'] = None

value['extrinsic_hash'] = f'0x{self.extrinsic_hash.hex()}'

value.update({key: value.serialize() for (key, value) in self.value_object.items()})

Expand Down

0 comments on commit 4dbd98a

Please sign in to comment.