This issue is a lightweight placeholder and needs more details.
@brozorec showed me today a contract build where a contract using the open zeppelin stellar contracts is picking up some random exports from the libraries.
He shared an example here: OpenZeppelin/stellar-contracts#373
This new behaviour has been noticed as part of upgrading both to a new sdk as well as new contract code, so there's a few moving parts and it is possible this is a result of one of those moving parts. But after a cursory look I think this might be a case of exports leaking from libraries to the contract, but in a way that's inconsistent.
The exports being lifted into the cdylib in the example above are contract specs.
We know that control over what exports leak from libraries to the main cdylib being built is very limited in the rust compiler. This is an issue we have explored in:
This issue is a lightweight placeholder and needs more details.
@brozorec showed me today a contract build where a contract using the open zeppelin stellar contracts is picking up some random exports from the libraries.
He shared an example here: OpenZeppelin/stellar-contracts#373
This new behaviour has been noticed as part of upgrading both to a new sdk as well as new contract code, so there's a few moving parts and it is possible this is a result of one of those moving parts. But after a cursory look I think this might be a case of exports leaking from libraries to the contract, but in a way that's inconsistent.
The exports being lifted into the cdylib in the example above are contract specs.
We know that control over what exports leak from libraries to the main cdylib being built is very limited in the rust compiler. This is an issue we have explored in: