-
Notifications
You must be signed in to change notification settings - Fork 541
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
Generate and transfer #25
base: master
Are you sure you want to change the base?
Conversation
|
||
return await sendTransaction({ | ||
transaction, | ||
signers: [signer, wallet.publicKey], |
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.
wallet.publicKey
needs to be specified before signer
because whichever account is specified first is used to pay for transaction fees, otherwise the transaction fails because the newly-created account doesn't have any SOL to start with.
</> | ||
)} | ||
</p> | ||
{account && <QRCode value={account.pubkey.toBase58()} />} |
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.
QR codes need a white margin around them to work; passing in includeMargin
to QRCode
should work
No description provided.