'Does Solidity language has namespace?
In Solidity langugae, I define ContractA and ContractB.
Inside ContractA declare structure A and I want to access A inside ContractB.
contract ContractA {
struct A {
uint age;
string name;
}
// Some other methods and data structure
}
contract ContractB {
// how to access structure A.
}
I don't want to use Inheritance or library syntax.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
