rjpence / daily-financial-literacy-dapp

MIT License
0 stars 0 forks source link

Deploy `YourContract` to the sepolia testnet #2

Open jasonklein opened 10 months ago

jasonklein commented 10 months ago

Deploy the smart contract to the sepolia testnet from your local machine:

These links may also be helpful:

Deploying a smart contract is a transaction and requires using the base currency of the network (e.g., Ether) to pay for gas. When it comes to testnets, you can obtain some of the base currency for free from faucets.

Chainlink has a sepolia faucet, https://faucets.chain.link/, as does Alchemy, https://www.alchemy.com/overviews/sepolia-eth.

jasonklein commented 9 months ago

@rjpence: If you haven't gotten very far with this yet, I think instead you should try deploying to Avalanche's Fuji testnet: https://blog.chain.link/how-to-build-and-deploy-an-avalanche-smart-contract/

I expect differences to be minimal:

All of the Chainlink products that we will try to use are available on Avalanche, and we become additionally eligible for Avalanche prizes by deploying on their testnet.

We will do multiple deployments, so it's not a big deal if you've already deployed on Sepolia.

rjpence commented 9 months ago

stuck here Error: insufficient funds for intrinsic transaction cost [ See: https://links.ethers.org/v5-errors-INSUFFICIENT_FUNDS ] (error={"name":"ProviderError","_stack":"ProviderError: insufficient funds for gas * price + value: address 0xa5cE8181eE763e77b32f4cC80E4Cf946730D652E have (0) want (3288625000000000)\n at HttpProvider.request (/home/randymanjaro/scaffold-eth-2/packages/hardhat/node_modules/hardhat/src/internal/core/providers/http.ts:88:21)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","code":-32000,"_isProviderError":true}, method="sendTransaction", transaction=undefined, code=INSUFFICIENT_FUNDS, version=providers/5.7.2)

jasonklein commented 9 months ago

@rjpence: did you figure out the address of the count that you're trying to deploy from?