Skip to content

Commit

Permalink
Change import 'ton' for 'ton-core'
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyProgrammist committed Feb 11, 2024
1 parent 764b626 commit f448595
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/generators/typescript/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
18 changes: 9 additions & 9 deletions test/generated_files/generated_block.ts
Original file line number Diff line number Diff line change
@@ -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;;
}
Expand Down
18 changes: 9 additions & 9 deletions test/generated_files/generated_test.ts
Original file line number Diff line number Diff line change
@@ -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;;
}
Expand Down

0 comments on commit f448595

Please sign in to comment.