Skip to content

Commit

Permalink
fix: suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota committed Oct 13, 2024
1 parent 1fa6145 commit 2d0c0be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion docs/src/content/docs/ref/core-advanced.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ let addr = address("EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2");
let parsedAddr = parseStdAddress(addr.asSlice());
parsedAddr.workchain; // 0
parsedAddr.address; // 107...287
parsedAddr.address; // 107...lots of digits...287
// Using newAddress() function with the contents of StdAddress will yield the initial Address:
let addr2: Address = newAddress(parsedAddr.workchain, parsedAddr.address);
addr2 == addr; // true
```

:::note
Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/ref/core-cells.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ Usage example:
```tact
let b: Builder = beginCell();
let fizz: Builder = b
.storeMaybeRef(emptyCell()) // 1, then empty cell
.storeMaybeRef(null); // 0
.storeMaybeRef(emptyCell()) // stores a single 1 bit, then an empty cell
.storeMaybeRef(null); // stores only a single 0 bit
```

## Builder.refs
Expand Down

0 comments on commit 2d0c0be

Please sign in to comment.