From f4485953207dd1c68dad4a25e018460a7f2df4a4 Mon Sep 17 00:00:00 2001 From: polyprogrammist Date: Sun, 11 Feb 2024 13:03:27 -0500 Subject: [PATCH] Change import 'ton' for 'ton-core' --- src/generators/typescript/generator.ts | 2 +- test/generated_files/generated_block.ts | 18 +++++++++--------- test/generated_files/generated_test.ts | 18 +++++++++--------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/generators/typescript/generator.ts b/src/generators/typescript/generator.ts index a38ed0a..4c3d6dc 100644 --- a/src/generators/typescript/generator.ts +++ b/src/generators/typescript/generator.ts @@ -231,7 +231,7 @@ export class TypescriptGenerator implements CodeGenerator { addTonCoreClassUsage(name: string) { this.jsCodeDeclarations.push( - tImportDeclaration(id(name), tStringLiteral("ton")) + tImportDeclaration(id(name), tStringLiteral("ton-core")) ); } addBitLenFunction() { diff --git a/test/generated_files/generated_block.ts b/test/generated_files/generated_block.ts index 575b3d9..afcad74 100644 --- a/test/generated_files/generated_block.ts +++ b/test/generated_files/generated_block.ts @@ -1,12 +1,12 @@ -import { Builder } from 'ton' -import { Slice } from 'ton' -import { beginCell } from 'ton' -import { BitString } from 'ton' -import { Cell } from 'ton' -import { Address } from 'ton' -import { ExternalAddress } from 'ton' -import { Dictionary } from 'ton' -import { DictionaryValue } from 'ton' +import { Builder } from 'ton-core' +import { Slice } from 'ton-core' +import { beginCell } from 'ton-core' +import { BitString } from 'ton-core' +import { Cell } from 'ton-core' +import { Address } from 'ton-core' +import { ExternalAddress } from 'ton-core' +import { Dictionary } from 'ton-core' +import { DictionaryValue } from 'ton-core' export function bitLen(n: number) { return n.toString(2).length;; } diff --git a/test/generated_files/generated_test.ts b/test/generated_files/generated_test.ts index d850f82..e188afd 100644 --- a/test/generated_files/generated_test.ts +++ b/test/generated_files/generated_test.ts @@ -1,12 +1,12 @@ -import { Builder } from 'ton' -import { Slice } from 'ton' -import { beginCell } from 'ton' -import { BitString } from 'ton' -import { Cell } from 'ton' -import { Address } from 'ton' -import { ExternalAddress } from 'ton' -import { Dictionary } from 'ton' -import { DictionaryValue } from 'ton' +import { Builder } from 'ton-core' +import { Slice } from 'ton-core' +import { beginCell } from 'ton-core' +import { BitString } from 'ton-core' +import { Cell } from 'ton-core' +import { Address } from 'ton-core' +import { ExternalAddress } from 'ton-core' +import { Dictionary } from 'ton-core' +import { DictionaryValue } from 'ton-core' export function bitLen(n: number) { return n.toString(2).length;; }