Questions tagged [override]
The override tag has no usage guidance.
3
questions
0
votes
1answer
61 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 ...
0
votes
1answer
563 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();
}
...
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 ...