13

So instead of doing something like:

contract Parent {
...
}

contract Child is Parent {
...
}

Can the Parent be declared referencing an already deployed contract?

contract Parent = 0x123123123...

contract Child is Parent {
...
}
10

No, the compiler cannot determine the ABI of the Parent contract from the bytecode on the blockchain, so this will not work.

| improve this answer | |
1

Given that you might be able to repurpose an existing contract as described here I guess this might work with some work-arounds. I think this would be very interesting to explore but cannot give details.

| improve this answer | |
  • I'm sorry, it appears that you've got a typo on the "as described here" link. – Fernando Tiberti May 12 '16 at 23:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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