我正在阅读来自solidity的几个示例:文档。我遇到过这样的功能:
function claimPayment(uint256 amount, uint256 nonce, bytes memory signature) external {
require(!usedNonces[nonce]);
usedNonces[nonce] = true;
// this recreates the message that was signed on the client
bytes32 message = prefixed(ke
我想知道在继承的情况下,谁仍然能够调用原始的覆盖函数。
让我们假设我有以下设置:
contract A{
address public owner;
function A(){
owner = msg.sender;
}
function doSomething(){
// does something
}
}
contract B is A{
function doSomething(){
require(msg.sender == owner);
// do something like A