Closed ayushtom closed 1 week ago
@liam-nethermind can you point which issue is the original one so i can follow for the fix?
@liam-nethermind can you point which issue is the original one so i can follow for the fix?
@ayushtom You can follow #11.
Hey @ayushtom can you please share the minimal code for reproducing this or share the project in which this was an issue? Thanks a lot!
Hey!
The contract is not open sourced yet but i can share the imports on the main.cairo
and the scarb.toml
file which can help you. I assume this is related to the import issue which you reffered above
scarb.toml
[package]
name = "twitter_nft_contract"
version = "0.1.0"
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html
[dependencies]
starknet = ">=2.4.4"
openzeppelin = { git = "https://github.com/OpenZeppelin/cairo-contracts.git", tag = "v0.13.0" }
custom_uri = { git = "https://github.com/starknet-id/custom_uri_component", rev = "e59d4d00cfecccb1681fad1862eb835df76184cf" }
[[target.starknet-contract]]
sierra = true
casm = true
casm-add-pythonic-hints = true
[lib]
sierra = true
casm = true
[tool.voyager]
my_contract = { path = "main.cairo" }
main.cairo
use openzeppelin::token::erc1155::erc1155::ERC1155Component::InternalTrait;
use twitter_nft_contract::interface::{
erc1155::{
IERC1155_ID, IERC1155_METADATA_URI_ID, IERC1155_RECEIVER_ID
},
twitter_nft::ITwitterNft
};
use core::debug::PrintTrait;
use openzeppelin::{
introspection::{src5::SRC5Component},
access::ownable::OwnableComponent,
token::erc1155::{ERC1155Component, ERC1155HooksEmptyImpl,interface::IERC1155MetadataURI},
upgrades::{UpgradeableComponent, interface::IUpgradeable},
};
use starknet::{get_contract_address, get_caller_address};
use starknet::{ContractAddress, ClassHash};
I have
asdf
to manage my versions and hence i run the verifier in the contract's root. The path is added to the zsh config to run the command but I face the error -IMPORT NOT RESOLVED: Delegation
error. I also don't use anysuper
imports in the contract which might give this import error.My Configuration -
Error logs -