I will be that goes out. Company
`
Oshybka (7576): Intelligence
-> SRC/Boxv1.sol: 32: 9:
|
32 | _disableinitializers ();
`
Problem B Tom that you ask you to get access to the function of disableinitializers', does not surround her in your code. PROVIDED DECUTIONS FOR THIS FUNDERS MY SUPPOSE IN TOT FILE OR IMPORTED from the second module.
Actually, "disableinitializers" - this is a poetic function, demolished in the second place, here you can go out:
- Add an unusual operator of the Import:
Pragma Polidy ^0.8,0;
Import “./boxv1.sol”;
`
This is imposed by the counter -attack Boxv1
from the second file.
- Dispatched Function
Disableinitializers':
FUNCTION _Disableinitializers () EVERYONE {
// Realizing the invalids
}
`
It is necessary to unite that I used the second aging for the function here, but it must be covered by the one that is disturbed into the imperided contract (Boxv1.sol
).
- Put your code to use
disableinitializers
:
`
// SPDX-License-Indifier: MI
Pragma Polidy ^0.8,0;
Import “./boxv1.sol”;
Function Disableinitializers () Evil {
_disableinitializers ();
}
`
It should spread the scraper and allow your code to successfully compilate.
Primer of the Variant Uspolzing:
Now you can release “disableinitializers” in copy Boxv1
, for example:
`
Course Boxv1 {
Function Boxv1 () Public {
// Initialize everything here …
}
Function Disableinitializers () Evil {
_disableinitializers ();
}
}
`
With the help of this exquisite code, you should have the opportunity to compile and start your contraction, non -adherence to “not detected idyntifikator”.