0

What is the right (intended) way to test promises and their results in near-sdk-rs? Please, point me in the right direction (docs/examples/...).

Let's take the simplest example (from here https://www.near-sdk.io/promises/token-tx): Promise::new(account_id).transfer(amount).

How to unit test that the right account received the right amount?

Vsevolod
  • 87
  • 6

1 Answers1

0

Check the example of fungible-token at near-sdk-rs repositories. You will get your answer.

Here is the right way for checking the balance given in the example.

checking_balance