erc6551 / reference

ERC-6551 reference implementation
152 stars 50 forks source link

Added hardfork support + deterministic state to reference implementation #31

Open jaydenwindle opened 5 months ago

jaydenwindle commented 5 months ago

@Vectorized good catch, the logic here was a bit wonky. Was trying to ensure that accounts deployed on chains other than the NFT's home chain will still return a null owner post-hardfork. This can be accomplished in a simpler way by checking against deploymentChainId instead of the live block.chainid.

Added a test case to show the expected behavior.