Added code that can increase the version of the account by 1 whenever the function is called. In order to do this, one needs to match the signer of the account creation transaction. Code was added to validate the operation, so that if the request sender and the account signer do not match, the account can't be changed (as can be seen when running anchor test on the current test file). The test file was also updated to test for all of these operations.
Added code that can increase the version of the account by 1 whenever the function is called. In order to do this, one needs to match the signer of the account creation transaction. Code was added to validate the operation, so that if the request sender and the account signer do not match, the account can't be changed (as can be seen when running anchor test on the current test file). The test file was also updated to test for all of these operations.