Open jermay opened 3 years ago
Faucet: https://faucet.matic.network/
Apparently the faucet only give out 0.1 MATIC-ETH
:
Error: *** Deployment Failed ***
"Migrations" could not deploy due to insufficient funds
* Account: 0xCcD1707d42a8f11b045D6BA60f8C6EdF16B46753
* Balance: 100000000000000000 wei
* Message: insufficient funds for gas * price + value
* Try:
+ Using an adequately funded account
+ If you are using a local Geth node, verify that your node is synced.
Setting an explicit gas price of 1gwei
in the truffle-config
did the trick:
2_kitties_migration.js
======================
Deploying 'KittyFactory'
------------------------
> transaction hash: 0x0c571c29596cd2a8cf63ffc656b2dc354f760b9ecff05e380b157aa52304daab
> Blocks: 3 Seconds: 4
> contract address: 0xD4Bcc3f1C483Ea10fDb97523357CA660E6B3c71E
> block number: 10254126
> block timestamp: 1612719845
> account: 0xCcD1707d42a8f11b045D6BA60f8C6EdF16B46753
> balance: 0.096074168
> gas used: 3719316 (0x38c094)
> gas price: 1 gwei
> value sent: 0 ETH
> total cost: 0.003719316 ETH
Pausing for 2 confirmations...
------------------------------
> confirmation number: 2 (block: 10254128)
> Saving migration to chain.
> Saving artifacts
-------------------------------------
> Total cost: 0.003719316 ETH
3_market_migration.js
=====================
Deploying 'KittyMarketPlace'
----------------------------
> transaction hash: 0xe643f71b77a0fb8818f56c4f9210df675acd28f6c670d863a74f875b8f19a3df
> Blocks: 2 Seconds: 4
> contract address: 0xa67e70910341DDF96537F005280a4417b5B29578
> block number: 10254133
> block timestamp: 1612719859
> account: 0xCcD1707d42a8f11b045D6BA60f8C6EdF16B46753
> balance: 0.093913944
> gas used: 2132883 (0x208b93)
> gas price: 1 gwei
> value sent: 0 ETH
> total cost: 0.002132883 ETH
Pausing for 2 confirmations...
------------------------------
> confirmation number: 2 (block: 10254135)
> Saving migration to chain.
> Saving artifacts
-------------------------------------
> Total cost: 0.002132883 ETH
Summary
=======
> Total deployments: 3
> Final cost: 0.006016374 ETH
Hrm now there is a different problem with rate limits when connecting:
×
Error: Objects are not valid as a React child (found: Error: Non-200 status code: '429'
{
"error": {
"details": "Rate limit exceeded: 10 per 1 second. Check response body for more details on backoff.Sign up for a dedicated RPC plan on https://rpc.maticvigil.com/ to avoid hitting public ratelimits.",
"code": -32005,
"data": {
"rate_violated": "10 per 1 second",
"next_reset_epoch": "1612721214",
"violating_domain": [
"66.115.147.197",
"publicEndpoint"
]
}
},
"jsonrpc": "2.0",
"id": 1
}). If you meant to render a collection of children, use an array instead.
in span (at GenZeroCounter.jsx:14)
in GenZeroCounter (at Home.jsx:49)
in p (at Home.jsx:46)
in div (at Home.jsx:44)
in div (at Home.jsx:43)
in Home (at App.js:83)
in Route (at App.js:82)
in Switch (at App.js:70)
in Router (created by BrowserRouter)
in BrowserRouter (at App.js:103)
in div (created by Container)
in Container (at App.js:101)
in div (at App.js:100)
in App (at src/index.js:14)
in Provider (at src/index.js:13)
in StrictMode (at src/index.js:12)
https://docs.matic.network/docs/develop/truffle/