Closed theref closed 2 years ago
I'd leave only one method, struct looks wonderful. To compare methods even better we can measure size of contract with only struct method and only array method.
There's something I don't understand in the batch claiming tests. Also, wdyt about adding tests for weird batch claims like claming for the same account multiple times in the same batch or stuff lie that?
Yeah I can add that. Is the expected behaviour that this would just revert in the claim
function because there is nothing left to claim? or do you think there should be an extra require
in batchClaim
? (which would obviously add overhead for 99% of it's use)
We want to be able to claim batches all together. This PR adds those in. There were two methods, one using 2D arrays to pass in the arguments, the other uses structs. The gas usage of those is:
Closes #2