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

feat: allow passing stings with units in function calls and transfers #99

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

willemneal
Copy link
Contributor

Now you can pass strings like 1 N when using function calls and transfers. E.g.

  await root.call(
    ft,
    'ft_transfer_call',
    {
      receiver_id: defi,
      amount: transferAmount,
      memo: null,
      msg: 'take-my-money',
    },
    {attachedDeposit: '1 yN', gas: '150 Tgas'},
  );

@volovyks volovyks merged commit c185ea1 into near:main Nov 29, 2021
@willemneal willemneal mentioned this pull request Nov 30, 2021
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