Skip to content

Commit

Permalink
feat: addressNone
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusarich committed Nov 18, 2024
1 parent a6cbf69 commit 1d98c52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The `replace` and `replaceGet` methods for the `Map` type: PR [#941](https://github.com/tact-lang/tact/pull/941)
- Utility for logging errors in code that was supposed to be unreachable: PR [#991](https://github.com/tact-lang/tact/pull/991)
- Docs: `preloadRef` method for the `Slice` type: PR [#1044](https://github.com/tact-lang/tact/pull/1044)
- New functions in stdlib from `stdlib.fc` and `math.fc`: `Builder.depth`, `Slice.skipLastBits`, `Slice.firstBits`, `Slice.lastBits`, `Slice.depth`, `Cell.computeDataSize`, `Slice.computeDataSize`, `Cell.depth`, `curLt`, `blockLt`, `setGasLimit`, `getSeed`, `setSeed`, `myCode`, `sign`, `mulrshift`, `mulrshift_round`, `mulrshift_ceil`, `sqrt`: PR [#986](https://github.com/tact-lang/tact/pull/986)
- New functions in stdlib from `stdlib.fc` and `math.fc`: `Builder.depth`, `Slice.skipLastBits`, `Slice.firstBits`, `Slice.lastBits`, `Slice.depth`, `Cell.computeDataSize`, `Slice.computeDataSize`, `Cell.depth`, `curLt`, `blockLt`, `setGasLimit`, `getSeed`, `setSeed`, `myCode`, `sign`, `mulrshift`, `mulrshift_round`, `mulrshift_ceil`, `sqrt`, `addressNone`: PR [#986](https://github.com/tact-lang/tact/pull/986)

### Changed

Expand Down
8 changes: 4 additions & 4 deletions src/imports/stdlib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ files['std/cells.tact'] =
'bGljZSk6IENlbGwgewogICAgcmV0dXJuIGJlZ2luQ2VsbCgpCiAgICAgICAgLnN0b3JlU2xpY2Uoc2VsZikKICAgICAgICAuZW5kQ2VsbCgp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6ZShzZWxmOiBTbGljZSwgbWF4Q2VsbHM6IEludCk6IERh' +
'dGFTaXplIHsgU0RBVEFTSVpFIFRSSVBMRSB9Cgphc20gZXh0ZW5kcyBmdW4gZGVwdGgoc2VsZjogQ2VsbCk6IEludCB7IENERVBUSCB9Cgo=';
files['std/config.tact'] =
'YXNtIGZ1biBnZXRDb25maWdQYXJhbShpZDogSW50KTogQ2VsbD8geyBDT05GSUdPUFRQQVJBTSB9Cg==';
files['std/context.tact'] =
Expand Down
2 changes: 2 additions & 0 deletions stdlib/std/cells.tact
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ inline fun emptySlice(): Slice {
return emptyCell().asSlice();
}

asm fun addressNone(): Address { b{00} PUSHSLICE }

struct DataSize {
cells: Int;
bits: Int;
Expand Down

0 comments on commit 1d98c52

Please sign in to comment.