Skip to content

Commit 444f73f

Browse files
committed
update README
1 parent 0eec2a3 commit 444f73f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Please refer `examples` directory.
3838

3939
### setup
4040

41-
```
41+
```C++
4242
#define INFURA_HOST "rinkeby.infura.io"
4343
#define INFURA_PATH "/<YOUR_INFURA_ID>"
4444

@@ -47,7 +47,7 @@ Web3 web3(INFURA_HOST, INFURA_PATH);
4747
4848
### call web3 methods
4949
50-
```
50+
```C++
5151
char result[128];
5252
5353
web3.Web3ClientVersion(result);
@@ -59,7 +59,7 @@ USE_SERIAL.println(result);
5959

6060
### `call` to Contract
6161

62-
```
62+
```C++
6363
Contract contract(&web3, CONTRACT_ADDRESS);
6464
strcpy(contract.options.from, MY_ADDRESS);
6565
strcpy(contract.options.gasPrice,"2000000000000");
@@ -71,7 +71,7 @@ USE_SERIAL.println(result);
7171
7272
### `sendTransaction` to Contract
7373
74-
```
74+
```C++
7575
Contract contract(&web3, CONTRACT_ADDRESS);
7676
contract.SetPrivateKey((uint8_t*)PRIVATE_KEY);
7777
uint32_t nonceVal = (uint32_t)web3.EthGetTransactionCount((char *)MY_ADDRESS);

0 commit comments

Comments
 (0)