-
Notifications
You must be signed in to change notification settings - Fork 170
DEVX-291c #1425
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
base: master
Are you sure you want to change the base?
DEVX-291c #1425
Conversation
9694bb9 to
36c6137
Compare
bd20f16 to
b233a94
Compare
b233a94 to
b78cccd
Compare
b78cccd to
7f87ef6
Compare
3120f9d to
33c9efa
Compare
33c9efa to
578a07c
Compare
c901418 to
2fc2307
Compare
d28329e to
53e5f79
Compare
ca2d928 to
f1bdb78
Compare
chrisnevers
left a comment
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.
Besides these comments, it looks good to me
f1bdb78 to
2b2f0d6
Compare
chrisnevers
left a comment
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 after these comments
|
I think gen.log should be gitignored |
2954e42 to
d0ddfa3
Compare
chrisnevers
left a comment
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, I think Jay needs to sign off though
d0ddfa3 to
08ad81e
Compare
| f: null, // freeze address | ||
| defaultFrozen: false, | ||
| reserve: null, | ||
| note: Uint8Array[1], |
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.
I think this is just undefined and I'm surprised it is not an error
| const transferNFT = async (minter, receiver, nftId, supply) => { | ||
| const preAmtNFT = await logBalance(minter, nftId); | ||
|
|
||
| if (stdlib.connector == 'ALGO') { |
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.
I think you should always do it and note that it does nothing on ETH
| const getBal = async (who, tok) => tok ? (await stdlib.balanceOf(who, tok)) : fmt(await stdlib.balanceOf(who)); | ||
|
|
||
| const logBalance = async (acc, tok) => { |
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.
In these two functions, you have an "acceptable" path on tok being undefined. I think it is kinder to use (who, tok = false), to better communicate to the reader that often you expect it to not be provided
| f: null, // freeze address | ||
| defaultFrozen: false, | ||
| reserve: null, | ||
| note: Uint8Array[1], |
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.
I think that you should use the ARC spec and have the note actually contain what it is supposed to
|
|
||
| const opts = { | ||
| supply: 1, | ||
| url: "ipfs://bafybeigdyrzt5...", //asset url |
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.
I think it is more compelling if you demonstrate actually creating it too. The same information that you're going to put in the Note field, you want to upload to IPFS.
This page has a little tutorial:
under "Adding data to IPFS"
If you are nervous about including it in the code always or having our CI do it, etc, then at least make a little program on the side (or a way to run this program) and comment on it in your guide
No description provided.