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
I found this name quite confusing since there are lots of headers (note
headers, log headers, etc.), and so this seemed like an obvious
improvement. I also renamed the generic-looking methods (e.g.
`getHeader()`) where appropriate.
Copy file name to clipboardexpand all lines: docs/docs/aztec/smart_contracts/functions/context.md
+3-5
Original file line number
Diff line number
Diff line change
@@ -66,13 +66,11 @@ The call context contains information about the current call being made:
66
66
- is_delegate_call: Denotes whether the current call is a delegate call. If true, then the storage contract address will be the address of the sender.
67
67
- is_static_call: This will be set if and only if the current call is a static call. In a static call, state changing altering operations are not allowed.
68
68
69
-
### Header
69
+
### Block Header
70
70
71
-
Another structure that is contained within the context is the Header object.
72
-
In the private context this is a header of a block which used to generate proofs against.
73
-
In the public context this header is set by sequencer (sequencer executes public calls) and it is set to 1 block before the block in which the transaction is included.
71
+
Another structure that is contained within the context is the `BlockHeader` object, which is the header of the block used to generate proofs against.
Aztec is in full-speed development. Literally every version breaks compatibility with the previous ones. This page attempts to target errors and difficulties you might encounter when upgrading, and how to resolve them.
8
8
9
+
## TBD
10
+
11
+
### [aztec.nr] Renamed `Header` and associated helpers
12
+
13
+
The `Header` struct has been renamed to `BlockHeader`, and the `get_header()` family of functions have been similarly renamed to `get_block_header()`.
14
+
15
+
```diff
16
+
- let header = context.get_header_at(block_number);
17
+
+ let header = context.get_block_header_at(block_number);
0 commit comments