You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/tx-format/transaction.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ enum ReceiptType : uint8 {
72
72
|`outputs`|[Output](./output.md)`[]`| List of outputs. |
73
73
|`witnesses`|[Witness](./witness.md)`[]`| List of witnesses. |
74
74
75
-
Given helper `max_gas()` returns the maximum gas that the transaction can use..
75
+
Given helper `max_gas()` returns the maximum gas that the transaction can use.
76
76
Given helper `len()` that returns the number of bytes of a field.
77
77
Given helper `count_ones()` that returns the number of ones in the binary representation of a field.
78
78
Given helper `count_variants()` that returns the number of variants in an enum.
@@ -117,6 +117,7 @@ The receipts root `receiptsRoot` is the root of the [binary Merkle tree](../prot
117
117
|`outputs`|[Output](./output.md)`[]`| List of outputs. |
118
118
|`witnesses`|[Witness](./witness.md)`[]`| List of witnesses. |
119
119
120
+
Given helper `max_gas()` returns the maximum gas that the transaction can use.
120
121
Given helper `count_ones()` that returns the number of ones in the binary representation of a field.
121
122
Given helper `count_variants()` that returns the number of variants in an enum.
122
123
Given helper `sum_variants()` that sums all variants of an enum.
@@ -134,6 +135,7 @@ Transaction is invalid if:
134
135
- The keys of `storageSlots` are not in ascending lexicographic order
135
136
- The computed contract ID (see below) is not equal to the `contractID` of the one `OutputType.ContractCreated` output
136
137
-`storageSlotsCount > MAX_STORAGE_SLOTS`
138
+
-`max_gas(tx) > MAX_GAS_PER_TX`
137
139
- The [Sparse Merkle tree](../protocol/cryptographic-primitives.md#sparse-merkle-tree) root of `storageSlots` is not equal to the `stateRoot` of the one `OutputType.ContractCreated` output
0 commit comments