iotaledger / iotaledger/notarization

[Bug]: Error on not using `withImmutableDescription()` and `withUpdatableMetadata()`

Open
#99 2 comments 0 reactions 1 assignee Claimed by @chrisgitiota View on GitHub
bug
Dominant language
Rust
Stars
5
Forks
7
Avg merge
10h 34m
Merged PRs (30d)
11

Description

### Bug description

While trying to optionally use `withImmutableDescription()` and `withUpdatableMetadata()` an error occours:

```TS
const notarizationBuilder = notarizationClient
.createLocked()

if (mycontext == ...) {
notarizationBuilder.withImmutableDescription("...thedescription...");
}

if (mycontext == ...) {
notarizationBuilder.withUpdatableMetadata("...themetadata..."):
}
```
This results in no errors in the IDE or during compilation.

But at runtime, we'll get this error :

"Error: null pointer passed to rust "
(at the line : notarizationBuilder.withImmutableDescription(...))

### Expected behavior

No runtime errors

### Can the issue reliably be reproduced?

Yes

### Example repository

_No response_

### Steps to reproduce

-

### Language

WASM

### Language Version

-

### Version

v0.1.0

### Hardware specifications

-

### Additional info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.