-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this 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 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 path에도 ainftObjects로 맞춰줘야 될까요?
There was a problem hiding this comment.
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
사용이 맞습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아하 뒤에 tokenId가 있었군요! 짚어주셔서 감사합니다!
src/ainftToken.ts
Outdated
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor) 공백이 들어간 것 같습니다. (앗 공백 들어간게 컨벤션일까요?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
공백이 들어간게 컨벤션인데, 앞뒤에 다 안들어가 있었네요. 수정하였습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
감사합니다~
Thanks for the review! |
ainftObject
instead ofnft
.searchAssets
->searchNfts
searchCollections
->searchAinftObjects