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: evm-node.md
+18-6Lines changed: 18 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Because the same account may be loaded more than once, implementations of this i
22
22
- Empty code is detected without lazy evaluation by means of checking the code hash, and therefore will always be represented in the `<code>` cell as `.WordStack`.
23
23
24
24
```{.k .node}
25
-
syntax AccountCode ::= "#unloaded"
25
+
syntax AccountCode ::= #unloaded(Int)
26
26
```
27
27
28
28
-`#getBalance` returns the balance of an account that exists based on its integer address.
@@ -31,9 +31,10 @@ Because the same account may be loaded more than once, implementations of this i
31
31
-`#accountExists` returns true if the account is present in the state trie for the current block, and false otherwise.
32
32
33
33
```{.k .node}
34
-
syntax Int ::= #getBalance ( Int ) [function, hook(BLOCKCHAIN.getBalance)]
35
-
| #getNonce ( Int ) [function, hook(BLOCKCHAIN.getNonce)]
-`runVM` takes all the input state of a transaction and the current block header and executes the transaction according to the specified state, relying on the above loading operations for access to accounts and block hashes.
0 commit comments