enhancement: account state unit tests#2693
Conversation
Looks like this |
| Mina.setActiveInstance(Local); | ||
| const [feePayer] = Local.testAccounts; | ||
|
|
||
| const tests: TestSpec[] = [ |
There was a problem hiding this comment.
while this checks if we can declare n state fields, it doesn't check that we actually properly allocate them becuse they are 0 by default anyway. we can do this in a different test but we should make sure that when we declare n state fields, we should also try to modify them
There was a problem hiding this comment.
I agree! you can also define a field array Provable.Array(Field, 32) and play around with the number of fields and state changes etc..
There was a problem hiding this comment.
Why does the title mention account-update as well?
| Mina.setActiveInstance(Local); | ||
| const [feePayer] = Local.testAccounts; | ||
|
|
||
| const tests: TestSpec[] = [ |
There was a problem hiding this comment.
I agree! you can also define a field array Provable.Array(Field, 32) and play around with the number of fields and state changes etc..
testing to see that we do support 32 account state fields, and reject anything above
closes #2669