Skip to content

Commit

Permalink
Map runtime::Call ScaleInfo types to GenericCall polkascan/py-substra…
Browse files Browse the repository at this point in the history
…te-interface#143

Pass metadata in nested Calls
  • Loading branch information
arjanz committed Oct 20, 2021
1 parent eaffeca commit b497d5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions scalecodec/type_registry/metadata_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -1562,6 +1562,7 @@
"pallet_identity::types::Data": "Data",
"frame_support::storage::bounded_vec::BoundedVec": "BoundedVec",
"frame_support::storage::weak_bounded_vec::WeakBoundedVec": "BoundedVec",
"*::Call": "GenericCall",
"*::Event": {
"type": "struct",
"base_class": "GenericScaleInfoEvent",
Expand Down
2 changes: 1 addition & 1 deletion scalecodec/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ def process(self):
self.call_module = self.metadata.get_pallet_by_index(pallet_index.value)
call_type_string = self.call_module['calls'].value_object.get_type_string()

call_obj = self.process_type(call_type_string)
call_obj = self.process_type(call_type_string, metadata=self.metadata)

self.call_index = "{:02x}{:02x}".format(pallet_index.value, call_obj.index)

Expand Down

0 comments on commit b497d5f

Please sign in to comment.