Skip to content

Commit

Permalink
txoutput and outputdatum construction allowed anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
christianschmitz committed Mar 27, 2023
1 parent 80c9f80 commit b5e1991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lang/builtins/outputdatum.md
Expand Up @@ -17,23 +17,23 @@ OutputDatum::from_data(data: Data) -> OutputDatum

### `new_hash`

Construct a new `OutputDatum::Hash` instance. **Only available after `main`**, see [script structure](../script-structure.md#data-generators-and-test-functions-5).
Construct a new `OutputDatum::Hash` instance.

```helios
OutputDatum::new_hash(datum_hash: DatumHash) -> OutputDatum::Hash
```

### `new_inline`

Construct a new `OutputDatum::Inline` instance from any value. **Only available after `main`**, see [script structure](../script-structure.md#data-generators-and-test-functions-5).
Construct a new `OutputDatum::Inline` instance from any value that is not a function.

```helios
OutputDatum::new_inline(any: AnyType) -> OutputDatum::Inline
```

### `new_none`

Construct a new `OutputDatum::None` instance. **Only available after `main`**, see [script structure](../script-structure.md#data-generators-and-test-functions-5).
Construct a new `OutputDatum::None` instance.

```helios
OutputDatum::new_none() -> OutputDatum::None
Expand Down
2 changes: 1 addition & 1 deletion src/lang/builtins/txoutput.md
Expand Up @@ -12,7 +12,7 @@ TxOutput::from_data(data: Data) -> TxOutput

### `new`

Construct a `TxOutput` instance. **Only available after `main`**, see [script structure](../script-structure.md#data-generators-and-test-functions-5).
Construct a `TxOutput` instance.

```helios
TxOutput::new(
Expand Down

0 comments on commit b5e1991

Please sign in to comment.