adrianhajdin / project_web3_battle_game

With a stunning design, interactive gameplay, smart wallet pairing, live interaction with smart contracts, and, most importantly, the ability to battle other players in real-time, AvaxGods is the best and the only Web3 battle-style online multiplayer card game that you can currently find on YouTube.
https://jsmastery.pro
435 stars 144 forks source link

Can't able deploy contract on fuji #4

Open RohitKS7 opened 1 year ago

RohitKS7 commented 1 year ago

Hey Bro, Hope you are doing Well. First of all thanks for the video you created for us leaners. I got an error, hope you can help me. I unable to deploy the contract on testnet because it exceeds the contract size limit. I looked on google for solutions and it says try to separate the code in 2 files. I can separate it but since You didn't explained the contract, I don't know which function is related to other.

What's the solution for it?

RoyalKittymeme commented 1 year ago

Try again with enable optimization

Slicedatup commented 1 year ago

Hey Bro, Hope you are doing Well. First of all thanks for the video you created for us leaners. I got an error, hope you can help me. I unable to deploy the contract on testnet because it exceeds the contract size limit. I looked on google for solutions and it says try to separate the code in 2 files. I can separate it but since You didn't explained the contract, I don't know which function is related to other.

What's the solution for it?

Doesn't Work for me too. I constantly keep getting this error : HardhatError: HH700: Artifact for contract "AvaxGods" not found.

WeissKai commented 1 year ago

fuji测试网目前无法进行部署智能合约,大概是因为core目前还不太稳定,解决方法目前有两种,一是不使用core改使用metamask,二是换个测试网