Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 1.15 KB

README.md

File metadata and controls

30 lines (27 loc) · 1.15 KB

medicalContract-near

Quickstart

1. Install Dependencies

npm install

2. Test the Contract

Deploy your contract in a sandbox and simulate interactions from users.

npm test

3. Deploy the Contract

Build the contract and deploy it in a testnet account

npm run deploy

Possible problems

1.When you run */.sh file and get this error : "/bin/bash^M:bad interpreter:No such file or directory"

Check this solution

2.RPC error:"Retrying HTTP request for https://rpc.testnet.near.org because of error: FetchError: request to https://rpc.testnet.near.org/ failed, reason: Client network socket disconnected before secure TLS connection was established"

You should run this two commands orderly:

export NEAR_CLI_TESTNET_RPC_SERVER_URL=https://hk.bsngate.com/api/1e7227ced74cdd9507575cf08bef7d1ff715db9c8d9befd945b766a86c2ea1fd/Near-Testnet/rpc
near set-api-key https://hk.bsngate.com/api/1e7227ced74cdd9507575cf08bef7d1ff715db9c8d9befd945b766a86c2ea1fd/Near-Testnet/rpc 29e93a93a9868bb25fadf2f5cf19848ca87b31797f963b314b462cbb79dc32ea