Skip to content

Commit

Permalink
Update built-in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
polarker committed Feb 3, 2024
1 parent b72949f commit 75f002e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docs/ralph/built-in-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,20 @@ Returns the id of the contract
---

### contractAddress

```Rust
fn contractAddress!(contract:<Contract>) -> (Address)
```

Returns the address of the contract

> @param **contract** *the contract variable*
>
> @returns *the address of the contract*
---

### callerContractId

```Rust
Expand Down Expand Up @@ -1268,11 +1282,11 @@ Encodes inputs as big-endian ByteVec.
fn blake2b!(data:ByteVec) -> (ByteVec)
```

Computes the Blake2b hash of the input.
Computes the Blake2b-256 hash of the input.

> @param **data** *the input data to be hashed*
>
> @returns *the hash result*
> @returns *the 32 bytes hash result*
---

Expand Down

0 comments on commit 75f002e

Please sign in to comment.