Skip to content

Commit

Permalink
changed variable to const
Browse files Browse the repository at this point in the history
  • Loading branch information
Imod7 committed Jan 2, 2024
1 parent 9dae51f commit 236d0fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/blocks/XCMDecoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ export class XcmDecoder {
let xcmMessage: string = message;
let instructionLength = 0;
while (xcmMessage.length != 0) {
let xcmInstructions: Bytes;
xcmInstructions = api.createType('XcmVersionedXcm', xcmMessage);
const xcmInstructions: Bytes = api.createType('XcmVersionedXcm', xcmMessage);
instructions.push(xcmInstructions);
instructionLength = xcmInstructions.toU8a().length;
xcmMessage = xcmMessage.slice(instructionLength);
Expand Down

0 comments on commit 236d0fd

Please sign in to comment.