If I have a contract named LockedOffer, and in another contract that inherits from LockedOffer I declare an array LockedOffer[] public offers, what type is the array? I'm assuming it's an address array

  • 1
    It is an array of LockedOffer instances, not addresses. I believe you can get the address of an individual contract by using address(offeres[i]), but I am not sure. Commented Feb 12, 2022 at 14:03

1 Answer 1


It is an array of LocketOffer struct variables.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.