Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-agarwal-coinbase committed Jan 17, 2025
1 parent 9400b75 commit be5056c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/coinbase/smart_contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,13 @@ export class SmartContract {
return type === SmartContractType.ERC721;
}

/**
* Type guard for checking if the smart contract is an ERC1155.
*
* @param type - The type of the smart contract.
* @param options - The options of the smart contract.
* @returns True if the smart contract is an ERC1155, false otherwise.
*/
private isERC1155(
type: SmartContractType,
options: SmartContractOptionsModel,
Expand Down
2 changes: 2 additions & 0 deletions src/coinbase/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,7 @@ export type CreateCustomContractOptions = {
solidityVersion: string;
solidityInputJson: string;
contractName: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
constructorArgs: Record<string, any>;
};

Expand Down Expand Up @@ -1483,6 +1484,7 @@ export interface SmartContractAPIClient {

/**
* Compiles a custom contract.
*
* @param compileSmartContractRequest - The request body containing the compile smart contract details.
* @param options - Axios request options.
* @returns - A promise resolving to the compiled smart contract.
Expand Down

0 comments on commit be5056c

Please sign in to comment.