Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-agarwal-coinbase committed Sep 24, 2024
1 parent ccf3026 commit aba2dad
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/coinbase/smart_contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,20 +181,6 @@ export class SmartContract {
}
}

/**
* Type guard for checking if the smart contract is an ERC20.
*
* @param type - The type of the smart contract.
* @param options - The options of the smart contract.
* @returns True if the smart contract is an ERC20, false otherwise.
*/
private isERC20(
type: SmartContractType,
options: SmartContractOptionsModel,
): options is TokenContractOptionsModel {
return type === SmartContractType.ERC20;
}

/**
* Returns the ABI of the smart contract.
*
Expand Down Expand Up @@ -304,4 +290,18 @@ export class SmartContract {
`type: '${this.getType()}'}`
);
}

/**

Check failure on line 294 in src/coinbase/smart_contract.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `··`
* Type guard for checking if the smart contract is an ERC20.

Check failure on line 295 in src/coinbase/smart_contract.ts

View workflow job for this annotation

GitHub Actions / lint

Expected this line to be aligned with the start of the comment

Check failure on line 295 in src/coinbase/smart_contract.ts

View workflow job for this annotation

GitHub Actions / lint

Expected JSDoc block to be aligned
*

Check failure on line 296 in src/coinbase/smart_contract.ts

View workflow job for this annotation

GitHub Actions / lint

Expected this line to be aligned with the start of the comment
* @param type - The type of the smart contract.

Check failure on line 297 in src/coinbase/smart_contract.ts

View workflow job for this annotation

GitHub Actions / lint

Expected this line to be aligned with the start of the comment
* @param options - The options of the smart contract.

Check failure on line 298 in src/coinbase/smart_contract.ts

View workflow job for this annotation

GitHub Actions / lint

Expected this line to be aligned with the start of the comment
* @returns True if the smart contract is an ERC20, false otherwise.

Check failure on line 299 in src/coinbase/smart_contract.ts

View workflow job for this annotation

GitHub Actions / lint

Expected this line to be aligned with the start of the comment
*/

Check failure on line 300 in src/coinbase/smart_contract.ts

View workflow job for this annotation

GitHub Actions / lint

Expected this line to be aligned with the start of the comment
private isERC20(

Check failure on line 301 in src/coinbase/smart_contract.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `··`
type: SmartContractType,

Check failure on line 302 in src/coinbase/smart_contract.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `··`
options: SmartContractOptionsModel,
): options is TokenContractOptionsModel {
return type === SmartContractType.ERC20;
}
}

0 comments on commit aba2dad

Please sign in to comment.