Skip to content

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.

4 participants