File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export interface RunCallOpts {
18
18
value ?: BN
19
19
data ?: Buffer
20
20
/**
21
- * This is for CALLCODE where the code to load is different than the code from the to account
21
+ * This is for CALLCODE where the code to load is different than the code from the `opts.to` address.
22
22
*/
23
23
code ?: Buffer
24
24
depth ?: number
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ This is the core of the Ethereum Virtual Machine (EVM or just VM).
4
4
5
5
NOTES:
6
6
7
- stack items are lazily duplicated.
8
- So you must never directly change a buffer from the stack,
9
- instead you should `copy` it first
7
+ 1. Stack items are lazily duplicated, so you must never directly change a buffer
8
+ from the stack, instead you should `copy` it first.
9
+
10
+ 2. Not all stack items are 32 bytes, so if the operation relies on the stack
11
+ item length then you must use `utils.pad(<item>, 32)` first.
10
12
11
- not all stack items are 32 bytes, so if the operation relies on the stack
12
- item length then you must use utils.pad(<item>, 32) first.
13
13
*/
14
14
import { Address , BN } from 'ethereumjs-util'
15
15
import { Block } from '@ethereumjs/block'
@@ -23,7 +23,7 @@ import { default as EVM, ExecResult } from './evm/evm'
23
23
*/
24
24
export interface RunCodeOpts {
25
25
/**
26
- * The [`Block`](https://github.com/ ethereumjs/ethereumjs- block) the `tx` belongs to. If omitted a blank block will be used
26
+ * The `@ ethereumjs/block` the `tx` belongs to. If omitted a default blank block will be used.
27
27
*/
28
28
block ?: Block
29
29
evm ?: EVM
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ import TxContext from './evm/txContext'
12
12
*/
13
13
export interface RunTxOpts {
14
14
/**
15
- * The block to which the `tx` belongs
15
+ * The `@ethereumjs/ block` the `tx` belongs to. If omitted a default blank block will be used.
16
16
*/
17
17
block ?: Block
18
18
/**
19
- * An [ `@ethereumjs/tx`](https://github.com/ethereumjs/ethereumjs-vm/tree/master/packages/tx) to run
19
+ * An `@ethereumjs/tx` to run
20
20
*/
21
21
tx : Transaction
22
22
/**
You can’t perform that action at this time.
0 commit comments