Skip to content

Commit 55cb71b

Browse files
fix: address eslint warnings in contract_manager package
Co-Authored-By: Connor Prussin <[email protected]>
1 parent 7021e2e commit 55cb71b

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

contract_manager/scripts/load_test_entropy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import yargs from "yargs";
22
import { hideBin } from "yargs/helpers";
33
import { DefaultStore, EvmChain, toPrivateKey } from "../src";
44
import { COMMON_DEPLOY_OPTIONS, findEntropyContract } from "./common";
5-
import Web3 from "web3";
65

76
const parser = yargs(hideBin(process.argv))
87
.usage(
@@ -58,7 +57,7 @@ const ABI = [
5857
stateMutability: "nonpayable",
5958
type: "function",
6059
},
61-
] as any;
60+
] as any; // eslint-disable-line @typescript-eslint/no-explicit-any
6261

6362
async function main() {
6463
const argv = await parser.argv;

contract_manager/src/chains.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,12 @@ export class GlobalChain extends Chain {
174174
);
175175
}
176176

177+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
177178
async getAccountAddress(_privateKey: PrivateKey): Promise<string> {
178179
throw new Error("Can not get account for GlobalChain.");
179180
}
180181

182+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
181183
async getAccountBalance(_privateKey: PrivateKey): Promise<number> {
182184
throw new Error("Can not get account balance for GlobalChain.");
183185
}
@@ -439,7 +441,7 @@ export class EvmChain extends Chain {
439441
}
440442

441443
async estiamteAndSendTransaction(
442-
transactionObject: any,
444+
transactionObject: any, // eslint-disable-line @typescript-eslint/no-explicit-any
443445
txParams: { from?: string; value?: string }
444446
) {
445447
const GAS_ESTIMATE_MULTIPLIER = 2;

contract_manager/src/contracts/sui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ export class SuiWormholeContract extends WormholeContract {
527527
return { id: result.digest, info: result };
528528
}
529529

530-
private async getStateFields(): Promise<any> {
530+
private async getStateFields(): Promise<any> { // eslint-disable-line @typescript-eslint/no-explicit-any
531531
const provider = this.chain.getProvider();
532532
const result = await provider.getObject({
533533
id: this.stateId,

contract_manager/src/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export class Store {
234234
*/
235235
getChainOrThrow<T extends Chain>(
236236
chainId: string,
237-
ChainClass?: { new (...args: any[]): T; type: string }
237+
ChainClass?: { new (...args: any[]): T; type: string } // eslint-disable-line @typescript-eslint/no-explicit-any
238238
): T {
239239
const chain = this.chains[chainId];
240240
if (!chain) {

0 commit comments

Comments
 (0)