Skip to content

Commit

Permalink
fix(evmApi): syncNFTcontract update response
Browse files Browse the repository at this point in the history
  • Loading branch information
sogunshola authored Jul 9, 2022
1 parent fb59ac9 commit 820caa1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-boats-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@moralisweb3/evm-api': major
---

Perfromance improvement: Return object rather than undefined
8 changes: 6 additions & 2 deletions packages/evmApi/src/resolvers/token/syncNFTContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ export interface Params extends Camelize<Omit<ApiParams, 'chain' | 'address'>> {
export const syncNFTContractResolver = new EvmResolver({
name: 'syncNFTContract',
getPath: (params: Params) => `nft/${params.address}/sync`,
apiToResult: (data: ApiResult) => ({}),
resultToJson: (data) => ({}),
apiToResult: (data: ApiResult) => ({
success: true,
}),
resultToJson: (data) => ({
success: true,
}),
parseParams: (params: Params): ApiParams => ({
chain: resolveDefaultChain(params.chain).apiHex,
address: EvmAddress.create(params.address).lowercase,
Expand Down

0 comments on commit 820caa1

Please sign in to comment.