Assert chained delegations can not be used to transfer more ERC20 tokens than the root delegation permits. Tests a scenario where an initial delegation allows some amount X of ERC20 transfer which is then re-delegated allowing some amount >X and asserts that some amount >X can not be transferred.
Impacts test files only.
Motivation
ERC20 Allowance caveats are enforced at the delegation level using a mapping from a delegation hash, so this change is meant to check the integrity of the root delegation's caveat enforcement.
Summary
Assert chained delegations can not be used to transfer more ERC20 tokens than the root delegation permits. Tests a scenario where an initial delegation allows some amount X of ERC20 transfer which is then re-delegated allowing some amount >X and asserts that some amount >X can not be transferred. Impacts test files only.
Motivation