Skip to content

Events Decoding Issues #142

@thewhaleking

Description

@thewhaleking

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'

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions