You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have the following code below that does not compile, because it cannot find a custom error from one of the dependency (@erc725/smart-contracts) part of @lukso/lsp7-contracts. But this custom error exists in the dependency, and it seems like Remix cannot find it / resolve it for some reasons.
To Reproduce
Steps to reproduce the behavior:
Go to the Remix website
Create a new file Test.sol
Paste the following Solidity code below
Click on Compile and see the Solidity compile error
// SPDX-License-Identifier: MITpragma solidity^0.8.22;
// Import LSP7 standard from Lukso and Ownable from OpenZeppelinimport"@lukso/lsp7-contracts/contracts/LSP7DigitalAsset.sol";
import"@openzeppelin/contracts/access/Ownable.sol";
/** * @title FloouToken * @dev Token contract for $FLOOU based on LSP7 standard */contractFloouTokenisLSP7Mintable, LSP7Burnable {
constructor(
addresstokenContractOwner_
)
LSP7Mintable(
"FloouElixirs.com is your natural support for mental health issues.", // tokenName_"FLOOU", // tokenSymbol_
tokenContractOwner_,
0, // lsp4TokenType_false// isNonDivisible_
)
{
// Mint initial tokens to the deployermint(
msg.sender, // deployer will receive initial tokens20_000*10**decimals(), // will mint 20k tokenstrue, // force parameter""// optional transaction data
);
}
}
Expected behaviour
There should not be any compiler errors.
Screenshots
Looking at Remix, it seems to not load the file fully, or all the contracts part of the @erc725/smart-contracts package.
This is the code from errors.sol.
While the actual file from this dependency should be like this:
OwnableCallerNotTheOwner is not part of the latest version of this errors.sol ( 8.0.0 ). Remix will always get the latest version if it can find it on jsdelivr or unpkg unless you specify which version you want. You will see if you load version 7 it will be correct, this can be done using a package.json file in the remix workspace, for example ( replace it with the version you need )
The example above compiles this lib fine but there are other errors in your project which can probably also be resolved by restriction the package versions that are loaded in the project. you just need to figure out which ones they are.
IMO this wouldn't compile in other environments unless you specified which versions you needed. out of the box it won't work.
Describe the bug
I have the following code below that does not compile, because it cannot find a custom error from one of the dependency (
@erc725/smart-contracts
) part of@lukso/lsp7-contracts
. But this custom error exists in the dependency, and it seems like Remix cannot find it / resolve it for some reasons.To Reproduce
Steps to reproduce the behavior:
Test.sol
Expected behaviour
There should not be any compiler errors.
Screenshots
Looking at Remix, it seems to not load the file fully, or all the contracts part of the
@erc725/smart-contracts
package.This is the code from
errors.sol
.While the actual file from this dependency should be like this:
https://github.com/ERC725Alliance/ERC725/blob/v7.0.0/implementations/contracts/errors.sol
The text was updated successfully, but these errors were encountered: