Skip to content

Commit

Permalink
chore(docs): make the args style more clear (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
zfy0701 authored Nov 7, 2023
1 parent 3944e77 commit b1cfc12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/aptos/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ Use `yarn typemove-aptos --help` to see detail description.
A few examples:
- generate types for an address on mainnet:
```typescript
yarn typemove-aptos --target-dir ./src/types --abi-dir ./src/abis 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af
yarn typemove-aptos --target-dir=./src/types --abi-dir=./src/abis 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af
```
- generate types for local ABI files stored in `./src/abis`:
```typescript
yarn typemove-aptos --target-dir ./src/types ./src/abis
yarn typemove-aptos --target-dir=./src/types ./src/abis
```
- generate types using local node:
```typescript
yarn typemove-aptos --network http://localhost:8080 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af
yarn typemove-aptos --network="http://localhost:8080" 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af
```

### Decode object
Expand Down
6 changes: 3 additions & 3 deletions packages/sui/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ Use `yarn typemove-sui --help` to see detail description.
A few examples:
- generate types for an address on mainnet:
```typescript
yarn typemove-sui --target-dir ./src/types --abi-dir ./src/abis 0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5
yarn typemove-sui --target-dir=./src/types --abi-dir=./src/abis 0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5
```
- generate types for local ABI files stored in `./src/abis`:
```typescript
yarn typemove-sui --target-dir ./src/types ./src/abis
yarn typemove-sui --target-dir=./src/types ./src/abis
```
- generate types using local node:
```typescript
yarn typemove-sui --network http://localhost:8080 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af
yarn typemove-sui --network="http://localhost:8080" 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af
```

### Decode Object
Expand Down

0 comments on commit b1cfc12

Please sign in to comment.