Skip to content

Commit

Permalink
Merge branch 'main' into implicit-init-function
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-trunov authored Mar 21, 2024
2 parents ed3ae39 + 6bd585c commit 67e93ec
Show file tree
Hide file tree
Showing 7 changed files with 513 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

### 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

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 67e93ec

Please sign in to comment.