2020-09-17 13:03:49 +00:00
== == Source : A == ==
2020-11-23 18:06:44 +00:00
pragma abicoder v2 ;
2020-09-17 13:03:49 +00:00
struct Data {
bool flag ;
}
contract A {
function get ( ) public view returns ( Data memory ) { }
}
== == Source : B == ==
2020-12-03 17:29:17 +00:00
pragma abicoder v1 ;
2020-09-17 13:03:49 +00:00
import " A " ;
contract B {
modifier validate ( ) {
2020-11-10 13:14:43 +00:00
A ( address ( 0x00 ) ) . get ( ) ;
2020-09-17 13:03:49 +00:00
_ ;
}
}
== == Source : C == ==
2020-11-23 18:06:44 +00:00
pragma abicoder v2 ;
2020-09-17 13:03:49 +00:00
import " B " ;
contract C is B {
function foo ( )
public
validate ( )
{ }
}
// ----
2022-06-27 21:12:44 +00:00
// TypeError 2428: (B:80-102): The type of return parameter 1, struct Data memory, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.