Skip to content

Commit

Permalink
fix: code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
shuffledex committed Nov 11, 2020
1 parent 579b0cb commit 5af1390
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/api/entities/Account.ts
Expand Up @@ -180,14 +180,14 @@ export class Account extends Entity<UniqueIdentifiers> {
// TODO remove null check once types fixed
/* eslint-disable @typescript-eslint/no-non-null-assertion */
data.push({
blockNumber: new BigNumber(block_id!),
extrinsicIdx: extrinsic_idx!,
blockNumber: new BigNumber(block_id),
extrinsicIdx: extrinsic_idx,
address: rawAddress ?? null,
nonce: nonce!,
txTag: extrinsicIdentifierToTxTag({ moduleId: module_id!, callId: call_id! }),
txTag: extrinsicIdentifierToTxTag({ moduleId: module_id, callId: call_id }),
params,
success: !!txSuccess,
specVersionId: spec_version_id!,
specVersionId: spec_version_id,
extrinsicHash: extrinsic_hash!,
});
/* eslint-enabled @typescript-eslint/no-non-null-assertion */
Expand Down
6 changes: 3 additions & 3 deletions src/api/entities/TrustedClaimIssuer.ts
Expand Up @@ -71,9 +71,9 @@ export class TrustedClaimIssuer extends Entity<UniqueIdentifiers> {
// TODO remove null check once types fixed
/* eslint-disable @typescript-eslint/no-non-null-assertion */
return {
blockNumber: new BigNumber(result.data.eventByIndexedArgs.block_id!),
blockDate: result.data.eventByIndexedArgs.block!.datetime!,
eventIndex: result.data.eventByIndexedArgs.event_idx!,
blockNumber: new BigNumber(result.data.eventByIndexedArgs.block_id),
blockDate: result.data.eventByIndexedArgs.block!.datetime,
eventIndex: result.data.eventByIndexedArgs.event_idx,
};
/* eslint-enabled @typescript-eslint/no-non-null-assertion */
}
Expand Down

0 comments on commit 5af1390

Please sign in to comment.