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

New sendTokens function in client for transferring tokens between accounts #273

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

marcvelmer
Copy link
Collaborator

Usage:

    await client
      .sendTokens({ to: destinationAccount.address, amount: TOKENS_AMOUNT })
      .then(() => client.fetchAccountInfo())
      .then((accountData) => expect(accountData.balance).toEqual(accountInfo.balance - TOKENS_AMOUNT - SEND_TX_COST))
      .then(() => destinationClient.fetchAccountInfo())
      .then((destinationData) => expect(destinationData.balance).toEqual(destinationInfo.balance + TOKENS_AMOUNT));

@github-actions
Copy link

size-limit report 📦

Path Size
dist/index.js 1.63 MB (+0.02% 🔺)
dist/index.mjs 1.63 MB (+0.02% 🔺)
dist/index.umd.js 1.63 MB (+0.02% 🔺)

@marcvelmer marcvelmer merged commit 03ddadd into main Sep 20, 2023
10 checks passed
@marcvelmer marcvelmer deleted the f/send_token branch September 20, 2023 13:44
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.

2 participants