Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
In my contract function, I am checking who is the transaction caller. Since I am not setting the caller in the test-cases, It might be the issue.
I would to know how to set caller_id and how to pass funds in the call.
In ink_env::test there are lots of test function which help you for your specification likes get caller, set the caller and pass the funds and many more. Hope this helps your query.