Argennon-Project / ascee

C++ implementation of the Argennon smart contract execution environment (AscEE)
http://argennon.org
GNU Affero General Public License v3.0
6 stars 2 forks source link

Write a simple ARG transfer test #3

Open aybehrouz opened 2 years ago

aybehrouz commented 2 years ago

In this test we want to make sure that the balance of a user is checked before the transfer is performed. The test should perform this scenario: user A has 120 ARG. He issues two transactions to send 70 ARG and then 60 ARG to user B. First transaction should be successful but the second should fail. User A will have 50 ARG at the end. The test should be added to this file: ArgAppTest.cpp