near / near-workspaces-js

Write tests once, run them both on NEAR TestNet and a controlled NEAR Sandbox local environment
https://near.github.io/near-workspaces-js/
GNU General Public License v3.0
42 stars 21 forks source link

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

Closed willemneal closed 2 years ago

willemneal commented 2 years ago

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'},
  );