huffmate icon indicating copy to clipboard operation
huffmate copied to clipboard

include ERC72.huff got duplicate macro name

Open boying52 opened this issue 1 year ago • 1 comments

I got the error of compiling that it told me I have duplicate macro function, when I am writing the huffs with using huffmate, I think the reason is ERC721 included two files that are CommonErros.huff and nonpayable.huff, they all imported the same file that is Errors.huff. My #include visions are following:

MyTest.Huff ---> #include ECR721.huff

or

MyTest.Huff ----> #include hashmap.huff & #include ECR721.huff

above situations can cause the errors that including of duplicate to happen.

boying52 avatar Jun 04 '24 00:06 boying52

I believe that this is linked to the change in huffc which raises an error when there are duplicate macros in a compiled file (including imports), while in the past it was possible to do this (it was taking one of the two, probably the first one chonologically). This is what makes tests fail btw (#138). If I have some spare time in the coming days, I will try to fix this because it's ruining the experience with this repo.

MathisGD avatar Jun 06 '24 16:06 MathisGD