Skip to content

Commit

Permalink
fix(eslint): remove eslint comments and use this signer
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus committed Mar 22, 2024
1 parent 87d6c90 commit 32530eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/common/ant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import { WarpContract } from './index.js';

export class ANT implements ANTContract, BaseContract<ANTState> {
private contract: ContractInteractionProvider<ANTState>;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
private signer: ContractSigner | undefined;

constructor({ signer, ...config }: ContractConfiguration) {
Expand All @@ -55,7 +53,7 @@ export class ANT implements ANTContract, BaseContract<ANTState> {
signer,
});
}
this.contract.connect(signer);
this.contract.connect(this.signer);

return this;
}
Expand Down
4 changes: 1 addition & 3 deletions src/common/ar-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ import { WarpContract } from './index.js';

export class ArIO implements ArIOContract, BaseContract<ArIOState> {
private contract: ContractInteractionProvider<ArIOState>;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
private signer: ContractSigner | undefined;

constructor(
Expand Down Expand Up @@ -71,7 +69,7 @@ export class ArIO implements ArIOContract, BaseContract<ArIOState> {
signer,
});
}
this.contract.connect(signer);
this.contract.connect(this.signer);

return this;
}
Expand Down

0 comments on commit 32530eb

Please sign in to comment.