ajoliat23 / blockBook

0 stars 0 forks source link

Version Change and validation #20

Closed gigicu01 closed 1 year ago

gigicu01 commented 1 year ago

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.