Skip to content

Commit

Permalink
Merge branch 'main' into fuzz-store
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-trunov authored Mar 22, 2024
2 parents ff36766 + 7c8fd86 commit 9a36b85
Show file tree
Hide file tree
Showing 29 changed files with 2,598 additions and 26 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- `log2` and `log` math functions in stdlib: PR [#166](https://github.com/tact-lang/tact/pull/166)

### Changed
- Update the `dump` function to handle addresses: PR [#175](https://github.com/tact-lang/tact/pull/175)

- The implicit empty init function is now present by default in the contract if not declared

### Fixed

Expand Down
3 changes: 3 additions & 0 deletions src/abi/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ export const GlobalFunctions: { [key: string]: AbiFunction } = {
} else if (arg.name === 'String') {
const exp = writeExpression(resolved[0], ctx);
return `${ctx.used(`__tact_debug_str`)}(${exp})`;
} else if (arg.name === 'Address') {
const exp = writeExpression(resolved[0], ctx);
return `${ctx.used(`__tact_debug_address`)}(${exp})`;
}
throwError('dump() not supported for type: ' + arg.name, ref);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/generator/Writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { trimIndent } from "../utils/text";
import { topologicalSort } from "../utils/utils";
import { Writer } from "../utils/Writer";

type Flag = 'inline' | 'impure';
type Flag = 'inline' | 'impure' | 'inline_ref';

type Body = {
kind: 'generic',
Expand Down
Loading

0 comments on commit 9a36b85

Please sign in to comment.