solidity/test/libsolidity/syntaxTests/abiEncoder/v1_call_to_v2_modifier.sol

28 lines
370 B
Solidity
Raw Normal View History

==== Source: A ====
2020-11-23 18:06:44 +00:00
pragma abicoder v2;
struct Data {
bool flag;
}
contract A {
function get() public view returns (Data memory) {}
}
contract B {
modifier validate() {
A(address(0x00)).get();
_;
}
}
==== Source: B ====
import "A";
contract C is B {
function foo()
public
validate()
{}
}
// ----