File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import yargs from "yargs";
2
2
import { hideBin } from "yargs/helpers" ;
3
3
import { DefaultStore , EvmChain , toPrivateKey } from "../src" ;
4
4
import { COMMON_DEPLOY_OPTIONS , findEntropyContract } from "./common" ;
5
- import Web3 from "web3" ;
6
5
7
6
const parser = yargs ( hideBin ( process . argv ) )
8
7
. usage (
@@ -58,7 +57,7 @@ const ABI = [
58
57
stateMutability : "nonpayable" ,
59
58
type : "function" ,
60
59
} ,
61
- ] as any ;
60
+ ] as any ; // eslint-disable-line @typescript-eslint/no-explicit-any
62
61
63
62
async function main ( ) {
64
63
const argv = await parser . argv ;
Original file line number Diff line number Diff line change @@ -174,10 +174,12 @@ export class GlobalChain extends Chain {
174
174
) ;
175
175
}
176
176
177
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
177
178
async getAccountAddress ( _privateKey : PrivateKey ) : Promise < string > {
178
179
throw new Error ( "Can not get account for GlobalChain." ) ;
179
180
}
180
181
182
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
181
183
async getAccountBalance ( _privateKey : PrivateKey ) : Promise < number > {
182
184
throw new Error ( "Can not get account balance for GlobalChain." ) ;
183
185
}
@@ -439,7 +441,7 @@ export class EvmChain extends Chain {
439
441
}
440
442
441
443
async estiamteAndSendTransaction (
442
- transactionObject : any ,
444
+ transactionObject : any , // eslint-disable-line @typescript-eslint/no-explicit-any
443
445
txParams : { from ?: string ; value ?: string }
444
446
) {
445
447
const GAS_ESTIMATE_MULTIPLIER = 2 ;
Original file line number Diff line number Diff line change @@ -527,7 +527,7 @@ export class SuiWormholeContract extends WormholeContract {
527
527
return { id : result . digest , info : result } ;
528
528
}
529
529
530
- private async getStateFields ( ) : Promise < any > {
530
+ private async getStateFields ( ) : Promise < any > { // eslint-disable-line @typescript-eslint/no-explicit-any
531
531
const provider = this . chain . getProvider ( ) ;
532
532
const result = await provider . getObject ( {
533
533
id : this . stateId ,
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ export class Store {
234
234
*/
235
235
getChainOrThrow < T extends Chain > (
236
236
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
238
238
) : T {
239
239
const chain = this . chains [ chainId ] ;
240
240
if ( ! chain ) {
You can’t perform that action at this time.
0 commit comments