Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Dentosal committed Jun 24, 2024
1 parent 3a8e2c7 commit f735803
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/fuel-vm/instruction-set.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
- [`TRO`: Transfer coins to output](#tro-transfer-coins-to-output)
- [Blob Instructions](#blob-instructions)
- [`BSIZ`: Blob size](#bsiz-blob-size)
- [`BLDC`: Load code from a blob](#blcd-load-code-from-a-blob)
- [`BLDD`: Load data from a blob](#blcd-load-data-from-a-blob)
- [`BLDC`: Load code from a blob](#bldc-load-code-from-a-blob)
- [`BLDD`: Load data from a blob](#bldd-load-data-from-a-blob)
- [Cryptographic Instructions](#cryptographic-instructions)
- [`ECK1`: Secp251k1 signature recovery](#eck1-secp256k1-signature-recovery)
- [`ECR1`: Secp256r1 signature recovery](#ecr1-secp256r1-signature-recovery)
Expand Down Expand Up @@ -2293,6 +2293,7 @@ Panic if:
- `$ra != 0`
- `$sp + $rD` overflows or `> VM_MAX_RAM` or `> $hp`
- `$rB + 32` overflows or `> VM_MAX_RAM`
- Blob ID `MEM[$rB, 32]` is not found

Increment `$fp->codesize` and `$sp` by `$rD` padded to word alignment. Then set `$sp` to `$ssp`.

Expand All @@ -2311,6 +2312,7 @@ Panic if:

- `$rA + $rD` overflows or `> VM_MAX_RAM` or `> $hp`
- `$rB + 32` overflows or `> VM_MAX_RAM`
- Blob ID `MEM[$rB, 32]` is not found

## Cryptographic Instructions

Expand Down
1 change: 0 additions & 1 deletion src/tx-format/transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ Transaction is invalid if:
- `subsectionsNumber > MAX_BYTECODE_SUBSECTIONS`
- The [Binary Merkle tree](../protocol/cryptographic-primitives.md#binary-merkle-tree) root calculated from `(witnesses[witnessIndex], subsectionIndex, subsectionsNumber, proofSet)` is not equal to the `root`. Root calculation is affected by all fields, so modification of one of them invalidates the proof.


## `TransactionBlob`

The `Blob` inserts a simple binary blob in the chain. It's raw immutable data that can be cheaply loaded by the VM and used as instructions or just data. Unlike `Create`, it doesn't hold any state or balances.
Expand Down

0 comments on commit f735803

Please sign in to comment.