Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nftId to ainftObjectId & Update some functions name #216

Merged
merged 4 commits into from
Oct 10, 2023

Conversation

woomurf
Copy link
Member

@woomurf woomurf commented Oct 10, 2023

  • Use ainftObject instead of nft.
  • Update search functions name
    • searchAssets -> searchNfts
    • searchCollections -> searchAinftObjects

Copy link
Member

@jiyoung-an jiyoung-an left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some comments, Thanks!

@@ -26,12 +26,12 @@ export default class Ainft721 extends FactoryBase {
* @returns
*/
async get(tokenId: string) {
const { list } = await this.sendRequestWithoutSign(HttpMethod.GET, `native/search`, { nftId: this.id, tokenId });
const { list } = await this.sendRequestWithoutSign(HttpMethod.GET, `native/search/nfts`, { ainftObjectId: this.id, tokenId });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기 path에도 ainftObjects로 맞춰줘야 될까요?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ainftObject.get(tokenId) 라서 nft를 가져오는 함수입니다. /nfts 사용이 맞습니다!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아하 뒤에 tokenId가 있었군요! 짚어주셔서 감사합니다!

readonly tokenId: string;
readonly metadata?: object;
readonly tokenURI: string;

constructor(tokenInfo: {nftId: string, tokenId: string, tokenURI: string, metadata?: object}, ain: Ain, baseUrl: string) {
constructor(tokenInfo: { ainftObjectId: string, tokenId: string, tokenURI: string, metadata?: object}, ain: Ain, baseUrl: string) {
Copy link
Member

@jiyoung-an jiyoung-an Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor) 공백이 들어간 것 같습니다. (앗 공백 들어간게 컨벤션일까요?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

공백이 들어간게 컨벤션인데, 앞뒤에 다 안들어가 있었네요. 수정하였습니다!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

감사합니다~

@woomurf
Copy link
Member Author

woomurf commented Oct 10, 2023

Thanks for the review!

@woomurf woomurf merged commit 544a4ea into develop Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants