-
Notifications
You must be signed in to change notification settings - Fork 147
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
Signatures should accompany transaction examples for the asset tutorial #1130
Comments
Could you give me a bit more info here? In the full code sample: https://developers.stellar.org/docs/tokens/how-to-issue-an-asset#full-code-sample A keypair is created from a secret key:
Then is used to sign the change trustline transaction
Are you referring to this code fragment: We commonly use this pattern where isolated code fragments are shown for brevity and then a complete example is displayed. Let me know if this resolves your question @ozgunozerk |
Hey @anataliocs , sure I can provide more info. I'm aware of the complete example is provided at the end, and there is The reason I created this issue is, back when I was reading your documentation, this step confused me, and without proceeding to the next part in the page, I thought that I first have to figure out what is confusing me. Now that I read it again, I can still see why I got confused back then. The wording and especially the headings/subheadings of the page conveyed the wrong message to me. I understand and agree that for brevity purposes, the chunks should be displayed instead of the full code. However, let me be more concrete here. Here is the section from your docs:
And then comes the code piece: const StellarSdk = require("stellar-sdk");
const server = new StellarSdk.Horizon.Server(
"https://horizon-testnet.stellar.org",
);
const account = await server.loadAccount(distributorKeypair.publicKey());
const transaction = new StellarSdk.TransactionBuilder(account, {
fee: StellarSdk.BASE_FEE,
networkPassphrase: StellarSdk.Networks.TESTNET,
})
// The `changeTrust` operation creates (or alters) a trustline
.addOperation(
StellarSdk.Operation.changeTrust({
asset: astroDollar,
limit: "1000", // optional
source: distributorKeypair.publicKey(),
}),
)
.setTimeout(100)
.build(); And due to the sub-heading: If the approach and wording suits, I can gladly open a PR. |
Btw, I tend to overthink these things to maximize the comfort of the reader, and I am inclined to overkill it. If you think the docs are good as is regarding this, feel free to close this issue :) This was only a nitpick 👍 |
No I totally appreciate the fresh eyes. I support anything to help folx navigate the docs b/c I quickly scan docs and can agree contextual clues and specificity does add up and help the DX |
Issue an asset tutorial: transactions are shown, but signature part is not shown. Signing part would be helpful due to:
The text was updated successfully, but these errors were encountered: