web3.swift icon indicating copy to clipboard operation
web3.swift copied to clipboard

Cannot inherit from non-open class 'ERC165' outside of its defining module

Open ParhamHatan opened this issue 2 years ago • 3 comments

I want to inherit ERC165 for creating ERC1155 class but got this error in my app.

public class ERC1155: ERC165 {} // <- Error line

ParhamHatan avatar Aug 05 '22 17:08 ParhamHatan

I don't see a reason to get an error by inheritting ERC165. Could you please share the error you got?

dioKaratzas avatar Aug 05 '22 20:08 dioKaratzas

It restricted from inheriting because of public tag. Error I got: Cannot inherit from non-open class 'ERC165' outside of its defining module @dnKaratzas

ParhamHatan avatar Aug 07 '22 11:08 ParhamHatan

I thought you wanted to edit the package. @DarthMike should we make the classes open for inheritance?

dioKaratzas avatar Aug 07 '22 14:08 dioKaratzas

@dnKaratzas happy to make open, no problem

DarthMike avatar Aug 30 '22 17:08 DarthMike

Fixed in #265

DarthMike avatar Aug 31 '22 16:08 DarthMike