status-network-token
status-network-token copied to clipboard
Grifmareview
Adding tests.
After pulling the latest changes two (new) tests that were previously ok now throw invalid opcode
Will look into this tomorrow, although these are both cases where a user tries to collect SNT they aren't eligible for, so invalid opcode is perhaps reasonable.
- Contract: StatusContribution Does not give SNT if user has no SGT: Error: VM Exception while processing transaction: invalid opcode
- Contract: StatusContribution only trade SGT tokens once: Error: VM Exception while processing transaction: invalid opcode
That was one of the last changes. If no SNT left for a user, now it throws.
BTW Really thank you to extend the tests...
@janther : “Not allow new SGT tokens to be generated once contribution period has started” This test should not pass, because is theorically possible. SGT can be generated when Status team wants. Before and after the contribution. (edited) The maximum that can receive as a whole is 10% And the distribution used is the one at the end of the finalizationBlock.
@jbaylina the test is now passing and is correct. Apparently undefined is in fact, equal to undefined which was the false positive on the previous test.