---
# System prepended metadata

title: Compiling your contracts...

---

```

mohdnizar11@DESKTOP-FSLU8KK:~$ cd /mnt/
c/ d/ e/
mohdnizar11@DESKTOP-FSLU8KK:~$ cd /mnt/d/EHR/
mohdnizar11@DESKTOP-FSLU8KK:/mnt/d/EHR$ ls
bs-config.json  contracts   node_modules       package.json  test
build           migrations  package-lock.json  src           truffle-config.js
mohdnizar11@DESKTOP-FSLU8KK:/mnt/d/EHR$ truffle compile
```

Compiling your contracts...
===========================
✓ Fetching solc version list from solc-bin. Attempt #1
✓ Downloading compiler. Attempt #1.
```
> Compiling ./contracts/Doctor.sol
> Compiling ./contracts/HealthCare.sol
> Compiling ./contracts/Manager.sol
> Compiling ./contracts/Migrations.sol
> Compiling ./contracts/Patient.sol
> Artifacts written to /mnt/d/EHR/build/contracts
> Compiled successfully using:
   - solc: 0.5.16+commit.9c3226ce.Emscripten.clang
mohdnizar11@DESKTOP-FSLU8KK:/mnt/d/EHR$ truffle migrate
```
Compiling your contracts...
===========================
```
> Everything is up to date, there is nothing to compile.
> Something went wrong while attempting to connect to the network at http://127.0.0.1:7545. Check your network configuration.
ProviderError:
Could not connect to your Ethereum client with the following parameters:
    - host       > 127.0.0.1
    - port       > 7545
    - network_id > *
Please check that your Ethereum client:
    - is running
    - is accepting RPC connections (i.e., "--rpc" or "--http" option is used in geth)
    - is accessible over the network
    - is properly configured in your Truffle configuration file (truffle-config.js)

    at /usr/local/share/.config/yarn/global/node_modules/truffle/build/webpack:/packages/provider/wrapper.js:76:1
    at /usr/local/share/.config/yarn/global/node_modules/truffle/build/webpack:/packages/provider/wrapper.js:114:1
    at XMLHttpRequest.request.onreadystatechange (/usr/local/share/.config/yarn/global/node_modules/truffle/build/webpack:/node_modules/web3/node_modules/web3-providers-http/lib/index.js:98:1)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/share/.config/yarn/global/node_modules/truffle/build/webpack:/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:1)
    at XMLHttpRequest.exports.modules.996763.XMLHttpRequest._setReadyState (/usr/local/share/.config/yarn/global/node_modules/truffle/build/webpack:/node_modules/xhr2-cookies/dist/xml-http-request.js:208:1)
    at XMLHttpRequest.exports.modules.996763.XMLHttpRequest._onHttpRequestError (/usr/local/share/.config/yarn/global/node_modules/truffle/build/webpack:/node_modules/xhr2-cookies/dist/xml-http-request.js:349:1)
    at ClientRequest.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/truffle/build/webpack:/node_modules/xhr2-cookies/dist/xml-http-request.js:252:48)
    at ClientRequest.emit (events.js:314:20)
    at Socket.socketErrorListener (_http_client.js:427:9)
    at Socket.emit (events.js:314:20)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
Truffle v5.5.19 (core: 5.5.19)
Node v12.22.12
mohdnizar11@DESKTOP-FSLU8KK:/mnt/d/EHR$ truffle migrate
```
Compiling your contracts...
===========================
```
> Everything is up to date, there is nothing to compile.


Starting migrations...
======================
> Network name:    'development'
> Network id:      5777
> Block gas limit: 6721975 (0x6691b7)


1_initial_migration.js
======================

   Replacing 'Migrations'
   ----------------------
   > transaction hash:    0x30d8b523f47fb74e8b322c09e439c7a39d98e368bfda1ab02128a9d070751681
   > Blocks: 0            Seconds: 0
   > contract address:    0x649fC2bD180b7936907a6162321b1862f8Faa1Cf
   > block number:        1
   > block timestamp:     1656706895
   > account:             0xecE158ec62021dA80090b633E889cE699b8a631B
   > balance:             99.9969302
   > gas used:            153490 (0x25792)
   > gas price:           20 gwei
   > value sent:          0 ETH
   > total cost:          0.0030698 ETH

   > Saving migration to chain.
   > Saving artifacts
   -------------------------------------
   > Total cost:           0.0030698 ETH


2_deploy_contracts.js
=====================

   Replacing 'Doctor'
   ------------------
   > transaction hash:    0xe899ecee8d715a774ace11d26c6b475a5998597ac7c4a4260554b6f15daba2b6
   > Blocks: 0            Seconds: 0
   > contract address:    0xFb86Dba7ce6F4Fe734D71F364883a710FEE71792
   > block number:        3
   > block timestamp:     1656706896
   > account:             0xecE158ec62021dA80090b633E889cE699b8a631B
   > balance:             99.98895306
   > gas used:            356602 (0x570fa)
   > gas price:           20 gwei
   > value sent:          0 ETH
   > total cost:          0.00713204 ETH


   Replacing 'HealthCare'
   ----------------------
   > transaction hash:    0x131ac059e71e32245b382f78354019f7adb798b07bec2ca0e863548c50e5df10
   > Blocks: 0            Seconds: 0
   > contract address:    0x788cf2523626fB9163B4c8Af9584c788e8586f8F
   > block number:        4
   > block timestamp:     1656706897
   > account:             0xecE158ec62021dA80090b633E889cE699b8a631B
   > balance:             99.96117852
   > gas used:            1388727 (0x1530b7)
   > gas price:           20 gwei
   > value sent:          0 ETH
   > total cost:          0.02777454 ETH


   Replacing 'Manager'
   -------------------
   > transaction hash:    0xb1aa36dec1cef4ca75f9de3316eb17bf3a3493fbe61635cde6bc2713ed77705c
   > Blocks: 0            Seconds: 0
   > contract address:    0x4143086c3e3C3a28b940ED063F93DbaeCC455709
   > block number:        5
   > block timestamp:     1656706898
   > account:             0xecE158ec62021dA80090b633E889cE699b8a631B
   > balance:             99.95366572
   > gas used:            375640 (0x5bb58)
   > gas price:           20 gwei
   > value sent:          0 ETH
   > total cost:          0.0075128 ETH


   Replacing 'Patient'
   -------------------
   > transaction hash:    0x54980e3061eccc1a5d8404e91c1fe0d980ba7e0f9098c17c03f83b1a16becec9
   > Blocks: 0            Seconds: 0
   > contract address:    0x8Cc349267734686D4F872f9418836D9Bc9823566
   > block number:        6
   > block timestamp:     1656706899
   > account:             0xecE158ec62021dA80090b633E889cE699b8a631B
   > balance:             99.94451294
   > gas used:            457639 (0x6fba7)
   > gas price:           20 gwei
   > value sent:          0 ETH
   > total cost:          0.00915278 ETH

   > Saving migration to chain.
   > Saving artifacts
   -------------------------------------
   > Total cost:          0.05157216 ETH

Summary
=======
> Total deployments:   5
> Final cost:          0.05464196 ETH
```

mohdnizar11@DESKTOP-FSLU8KK:/mnt/d/EHR$