Skip to content

Commit

Permalink
feat: Cancel the required parameter erc_type of the getAllAssets en…
Browse files Browse the repository at this point in the history
…dpoint
  • Loading branch information
yohuohuohuo committed Oct 24, 2022
1 parent 8a109cf commit 0877bb7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/api/evm/asset/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,13 @@ export default class NftscanEvmAsset extends BaseApi<NftscanConfig> {
*/
getAllAssets(
accountAddress: string,
ercType: ErcType,
ercType?: ErcType,
showAttribute?: boolean,
): Promise<Array<QueryAllAssetsResponse>> {
if (isEmpty(accountAddress)) {
return missingParamError('accountAddress');
}

if (isEmpty(ercType)) {
return missingParamError('ercType');
}

const params: NsObject = {
erc_type: ercType,
show_attribute: showAttribute,
Expand Down

0 comments on commit 0877bb7

Please sign in to comment.