Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed May 15, 2024
1 parent fb25247 commit a4d0be9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"url": "https://github.com/web3/web3.js-plugin-blob-tx/issues"
},
"scripts": {
"lint": "eslint '{src,test}/**/*.ts'",
"lint": "eslint 'src/**/*.ts'",
"lint:fix": "eslint --fix 'src/**/*.ts'",
"build": "tsc --project tsconfig.build.json",
"test": "jest --config=./test/jest.config.js"
},
Expand Down
6 changes: 4 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class Web3BlobTxPlugin extends Web3PluginBase {
public async sendRawTransaction(serializedTx: string): Promise<string> {
return ethRpcMethods.sendRawTransaction(this.requestManager, serializedTx);
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
public async estimateGas<ReturnFormat extends DataFormat>(
tx: Partial<BlobTransaction>,
blockNumber: Numbers = 'latest',
Expand All @@ -129,9 +129,10 @@ export class Web3BlobTxPlugin extends Web3PluginBase {
): Web3PromiEvent<ResolveType, SendTransactionEvents<ReturnFormat>> {
const promiEvent = new Web3PromiEvent<ResolveType, SendTransactionEvents<ReturnFormat>>(
(resolve, reject) => {
// eslint-disable-next-line @typescript-eslint/no-misused-promises
setImmediate(async () => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
const sendTxHelper = new SendTxHelper<ReturnFormat, ResolveType, BlobTransaction>({
// eslint-disable-next-line @typescript-eslint/no-explicit-any
web3Context: this as Web3Context<EthExecutionAPI, any>,
promiEvent,
options,
Expand All @@ -156,6 +157,7 @@ export class Web3BlobTxPlugin extends Web3PluginBase {
) as BlobTransaction;

try {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
transactionFormatted = (await sendTxHelper.populateGasPrice({
transaction: transaction,
transactionFormatted: transactionFormatted,
Expand Down

0 comments on commit a4d0be9

Please sign in to comment.