Skip to content

Commit ab17ece

Browse files
mr-zwetsrkalis
authored andcommitted
small script-limits docs improvement
1 parent 6f36f73 commit ab17ece

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

website/docs/compiler/script-limits.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ Some of the limits below are hard BCH consensus rules, others are standardness r
1313

1414
### Maximum contract size (P2SH)
1515

16-
The Bitcoin Cash limits contract bytecode for P2SH outputs is **10,000 bytes** by the BCH consensus rules. Technically this limit is the 'maximum unlocking bytecode length' because for P2SH outputs the full script is provided in the **unlocking bytecode**.
16+
The limit on Bitcoin Cash for contract bytecode for P2SH outputs is **10,000 bytes** by the BCH consensus rules. Technically this limit is the 'maximum unlocking bytecode length' because for P2SH outputs the full script is provided in the **unlocking bytecode**.
1717

1818
### Maximum contract size (P2S)
1919

20-
The Bitcoin Cash limits contract bytecode for P2S outputs is **201 bytes** by the BCH consensus rules. Technically this limit is the 'maximum locking bytecode length' because for P2S outputs the script is provided directly in the **locking bytecode**.
20+
The limit on Bitcoin Cash for contract bytecode for P2S outputs is **201 bytes** by the BCH consensus rules. Technically this limit is the 'maximum locking bytecode length' because for P2S outputs the script is provided directly in the **locking bytecode**.
2121

2222

2323
### NFT commitment length limit
2424

25-
NFT commitments can store up to 128 bytes of data as local state. This 128-bytes limit on commitment length is of practical importance for contract authors, as workarounds are needed to keep more data in local state.
25+
NFT commitments can store up to **128 bytes** of data as local state. This 128-bytes limit on commitment length is of practical importance for contract authors, as workarounds are needed to keep more data in local state.
2626

2727
If your local state grows larger than the allowed maximum, one option is to hash the full state and store only the hash in the commitment data. Later, when using the local state, the full state must be provided and validated against the stored state hash.
2828

@@ -71,12 +71,12 @@ function calculateDust(outputSize: number): number {
7171
}
7272
```
7373

74-
Before CashTokens `546` bytes was often used as good default value, however with tokenData outputs have become larger in size.
75-
For ease of development, it is standard practice to use 1,000 satoshis as dust to outputs.
74+
Before CashTokens `546` sats was often used as dust default value, however with tokenData outputs have become larger in size, which affects the dust value calculation.
75+
For ease of development, it is standard practice to use `1,000` satoshis as dust to outputs.
7676

7777
:::note
78-
The standard practice of 1,000 satoshis as dust amount for outputs is only considering `P2PKH`, `P2SH20` and `P2SH32` output types.
79-
For other custom locking bytecode outputs a higher dust limits may be required, you can [find more info here][info-dust-limit]
78+
The standard practice of 1,000 satoshis as dust amount for outputs is for the `P2PKH`, `P2SH20` and `P2SH32` output types.
79+
For custom locking bytecode outputs a higher dust limits may be required, you can [find more info here][info-dust-limit].
8080
:::
8181

8282
### Minimum Relay Fee

0 commit comments

Comments
 (0)