Questions tagged [override]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
45 views

Interface overriding

I have two contracts. One of them inherits another. Inside the parent contract I have the interface interface Token { function transfer(address to, uint256 value) external returns (bool); } I ...
5
votes
1answer
2k views

Override parent method and modifiers

For example, we have a contract: contract A { modifier checkCaller() { require(msg.sender == 0x123); _; } function doSmth() checkCaller {} } We make child contract and ...
0
votes
1answer
532 views

Call derived function from base contract

I have the following smart contracts: pragma solidity ^0.4.11; contract base { uint public v; separate public mySep; function base() { mySep = new separate(); } ...