Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Generate and transfer #25

wants to merge 6 commits into from

Conversation

philippe-ftx
Copy link
Collaborator

No description provided.

@philippe-ftx philippe-ftx marked this pull request as ready for review September 26, 2020 13:36
@philippe-ftx philippe-ftx changed the title [WIP] Generate and transfer Generate and transfer Sep 26, 2020

return await sendTransaction({
transaction,
signers: [signer, wallet.publicKey],
Copy link
Contributor

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()} />}
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants