-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: add transaction status checks to examples #23
base: main
Are you sure you want to change the base?
Conversation
@@ -99,7 +91,7 @@ async function scriptHtsFungibleToken() { | |||
|
|||
// NOTE: Verify token using Mirror Node API | |||
await logger.logSection('Get token data from the Hedera Mirror Node'); | |||
const tokenVerifyMirrorNodeApiUrl = `https://testnet.mirrornode.hedera.com/api/v1/tokens/${tokenId.toString()}`; | |||
const tokenVerifyMirrorNodeApiUrl = `https://testnet.mirrornode.hedera.com/api/v1/tokens/${tokenCreateTxReceipt.tokenId.toString()}`; |
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.
Better to move tokenId
out of its current if
block, and use that here instead.
.setTokenType(TokenType.FungibleCommon) | ||
// Configure token options: name, symbol, decimals, initial supply |
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.
is there a reason for removing these comments?
they were added/ requested by @SimiHunjan
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.
if comments were removed, it wasnt intentional. the only part of the code I meant to update were the lines adding the transaction status checks
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.
ok in that case pls reinstate them
Co-authored-by: Brendan Graetz <bguiz@users.noreply.github.com>
this PR enhances the examples with transaction status checks, clear success/failure logging, and error handling