Closed souravmaji1 closed 1 year ago
it has only 1 staking contract , can you tell me where are the other contracts which i can connect with this marketplace to run into my pc
You can use thirdweb provider for other contracts and start development quickly, you can look at https://thirdweb.com/dashboard, use testnet first. Don't deploy the staking contract before you deploy the other, you need the other contract address for put in to staking contract.
after i added all the addressess in the .env file and tried running the dapp in the localhost it is showing this and not opening in the localhost it is just getting ended
after i added all the addressess in the .env file and tried running the dapp in the localhost it is showing this and not opening in the localhost it is just getting ended
Have you checked sample.env with const/contractAddresses.js to see if they are the same? and how about the installation of the json package? are successfull?
@souravmaji1
use .env.local
for developed do not .env
.env
just for production..
should look like this...
i did .env for that reason might be the error
I have changed to .env.local still not running in the local , basically I have runned npm install for downloading all packages and added all the contract addresses in the .env.local file then typed " npm run dev" all this I have done am i missing something ?
this are my .env.local and const/contract-addrerss file
@souravmaji1 goerli-testnet at chain 56
not at 137
check at const/aLink.ts
done that then also same error , do i need to change anything inside the any file ?
done that then also same error , do i need to change anything inside the any file ?
@souravmaji1 What OS do you use Windows or Linux?
windows
windows try deleting
package-lock.json
andnode_module
folder, then try reinstalling all packages withnpm install
.
okay
okay
if you may delete your private key atacment above.
okay
if you may delete your private key atacment above.
don't share your private key wallet to public.
that is not the correct private key i Have deleted some words from the middle also I am removing the image
that is not the correct private key i Have deleted some words from the middle also I am removing the image
oke
same error , again am i missing any steps ?
same error , again am i missing any steps ?
I don't know, maybe from the difference in computer OS, because I use Linux OS. if I move coding to Windows OS, there are some things that don't work properly. there always has to be a rearrangement in the package.
same error , again am i missing any steps ?
I don't know, maybe from the difference in computer OS, because I use Linux OS. if I move coding to Windows OS, there are some things that don't work properly. there always has to be a rearrangement in the package.
You can try installing the nextJs starter package. and move all required js components and files also package.json in to nextJS new folder. it should be start from zero.
@souravmaji1can you give me your email address, i will send my master project folder.
@souravmaji1
to confirm the error, i tried clone the repo and install package, on linux everything works as it should, even without .env.local
file. probably due to differences in computer OS. you can try fix up stream peer dependence
try this
npm install --legacy-peer-deps
npm audit fix --force
this is my email : majisourav810@gmail.com
and I am trying your above solution let's see if that works
I tried running this above commands it still give same error , now i am trying to create nextjs starter package and adding all those files and isnatlling depending starting from scartch hope this works
I tried running this above commands it still give same error , now i am trying to create nextjs starter package and adding all those files and isnatlling depending starting from scartch hope this works
Oke.
@souravmaji1
My suggestion in package.json remove react-3d-hover before installing the package. that package only runs on react 17. Then you can edit and remove all <Hover
element in the every component, you will notice the error must be shown.
sorry , it was my mistake I was using older version of nodejs for that reason it was giving error
but now the main problem came , basically I want to ask you which are the contracts you have used using thriwed also any permission provided from any contract to another ( as I am getting error while listing nfts )
sorry , it was my mistake I was using older version of nodejs for that reason it was giving error
but now the main problem came , basically I want to ask you which are the contracts you have used using thriwed also any permission provided from any contract to another ( as I am getting error while listing nfts )
it's all in the README.md file at the bottom
ERC20Token Contracts. (reward)
Now staking contracts are also available on thirdweb.
I suggest using a smart contract from thirdweb, because if you use another contract provider you have to adjust the codes with the ABI smartcontract in the website component.
yes , I am using all the contracts from thirdweb
after I have deployed every contract correctly then also this error is showing
but I have noticed that this error comes into your dapp too , the link(vercel) of your dapp i tried uploading nfts when i set 0.001 it shows same error but when i changed the price to 0.1 it uploaded successfully and in my case whether i put 0.1 or 0.001 it still gives error and doesn't get uploaded
after I have deployed every contract correctly then also this error is showing
but I have noticed that this error comes into your dapp too , the link(vercel) of your dapp i tried uploading nfts when i set 0.001 it shows same error but when i changed the price to 0.1 it uploaded successfully and in my case whether i put 0.1 or 0.001 it still gives error and doesn't get uploaded
@souravmaji1
It always happens, try to go to the pages/api folder, then open the file generate-mint-signature.js then in the line const sdk = ThirdwebSDK.fromPrivateKey(process.env.PRIVATE_KEY, NETWORK_CHAIN_NAME);
remove NETWORK_CHAIN_NAME
replace with original. whatever network you use. so it will look like this. const sdk = ThirdwebSDK.fromPrivateKey(process.env.PRIVATE_KEY, "goerli-testnet");
still getting the same error , do i need to replace anything in any other pages ?
can you provide your folder which you have used while running the dapp , so that i can see the error in my folder which I am making
can you provide your folder which you have used while running the dapp , so that i can see the error in my folder which I am making
I have replaced it on my dapp, and it can upload immediately. the error in the console just leads to it.
can you provide your folder which you have used while running the dapp , so that i can see the error in my folder which I am making
pages > api > generate-mint-signature.js
Is this is correct ?
I am getting this error after i upload nft and click on mint+list button in the console
basically , i am writing wrong chain name , what will be the chain name if i have deployed to bnb testnet as i have seen in the (alinks) page in the chain name section 97 chain id network name is BNBTestnet but is is giving error
added the correct name but lastly it is giving new error
basically , i am writing wrong chain name , what will be the chain name if i have deployed to bnb testnet as i have seen in the (alinks) page in the chain name section 97 chain id network name is BNBTestnet but is is giving error
Chain Name for BNB testnet is binance-testnet
Is this is correct ?
Which network do you deploy smart contracts on thirdweb? use the same network address as the smart contract you deployed.
hi , I have solved the error and it is working smoothly and I would thank you for bring supportive and guiding me along with this project
thanks a lot
hi , I have solved the error and it is working smoothly and I would thank you for bring supportive and guiding me along with this project
thanks a lot
oke.. nice.. happy codding
it has only 1 staking contract , can you tell me where are the other contracts which i can connect with this marketplace to run into my pc