Events Decoding Issues
Closed this issue · 2 comments
thewhaleking commented
This is how bt-decode decodes an event:
{ 'event': { 'attributes': { 'dispatch_info': { 'class': {'Mandatory': []},
'pays_fee': {'Yes': []},
'weight': { 'proof_size': 1493,
'ref_time': 284906000}}},
'event_id': 'ExtrinsicSuccess',
'module_id': 'System'},
'extrinsic_idx': 0,
'phase': 'ApplyExtrinsic',
'topics': []}This is how scalecodec does it:
{ 'event': { 'attributes': { 'dispatch_info': { 'class': 'Mandatory',
'pays_fee': 'Yes',
'weight': { 'proof_size': 1493,
'ref_time': 284906000}}},
'event_id': 'ExtrinsicSuccess',
'module_id': 'System'},
'extrinsic_idx': 0,
'phase': 'ApplyExtrinsic',
'topics': []}Note the 'class' and 'pays_fees'
thewhaleking commented
This is an issue with async-substrate-interface
thewhaleking commented
Will be fixed by #141