ERC4973
ERC4973 copied to clipboard
Is it a problem that `testTakeEOA` and `testGiveEOA` produce the same validation signature?
see:
- https://github.com/rugpullindex/ERC4973/blob/bb471bcdc6a5871731566debeab97766e4423bbb/src/ERC4973.t.sol#L407
- https://github.com/rugpullindex/ERC4973/blob/bb471bcdc6a5871731566debeab97766e4423bbb/src/ERC4973.t.sol#L480
Do you mean from a security perspective? I see that they're the same because the roles are swapped so the active and passive addresses are the same in both tests.
I think that maybe it would be worth renaming the current test to testTakeFromEOA and add a testTakeToEOA.
Actually, should the tests cover all these scenarios for both give() and take()?
| Active: EOA, Passive: EOA | Active: EOA, Passive: Contract |
|---|---|
| Active: Contract, Passive: EOA | Active: Contract, Passive: Contract |
related: https://ethereum-magicians.org/t/eip-4973-account-bound-tokens/8825/124?u=timdaub