Skip to content

Commit

Permalink
wip: fix eslint and cspell
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusarich committed Sep 14, 2024
1 parent fae295c commit 5b27c35
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"lvalues",
"masterchain",
"maxint",
"merkle",
"minmax",
"mintable",
"mktemp",
Expand Down
1 change: 0 additions & 1 deletion src/generator/writers/resolveFuncType.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { deserialize } from "node:v8";
import { getType } from "../../types/resolveDescriptors";
import { TypeDescription, TypeRef } from "../../types/types";
import { WriterContext } from "../Writer";
Expand Down
3 changes: 1 addition & 2 deletions src/generator/writers/writeSerialization.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { contractErrors } from "../../abi/errors";
import { throwInternalCompilerError } from "../../errors";
import { dummySrcInfo, ItemOrigin } from "../../grammar/grammar";
import { ItemOrigin } from "../../grammar/grammar";
import { AllocationCell, AllocationOperation } from "../../storage/operation";
import { StorageAllocation } from "../../storage/StorageAllocation";
import { getType } from "../../types/resolveDescriptors";
Expand Down
3 changes: 3 additions & 0 deletions src/grammar/iterators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,5 +244,8 @@ export function traverse(node: AstNode, callback: (node: AstNode) => void) {
traverse(node.name, callback);
traverse(node.type, callback);
break;
case "exotic_type":
traverse(node.struct, callback);
break;
}
}
2 changes: 1 addition & 1 deletion src/test/e2e-emulated/contracts/exotics.tact
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct AirdropEntry {
struct ProvableData {
justForTestPurposes: Int;
entries: map<Int as uint16, AirdropEntry>;
anoterOne: Int as uint32;
anotherOne: Int as uint32;
}

message ProcessClaim {
Expand Down
4 changes: 2 additions & 2 deletions src/test/e2e-emulated/exotics.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import "@ton/test-utils";
import { randomAddress } from "@ton/test-utils";

const airdropEntryValue = {
serialize: (src: AirdropEntry, buidler: Builder) => {
buidler.storeAddress(src.address).storeCoins(src.amount);
serialize: (src: AirdropEntry, builder: Builder) => {
builder.storeAddress(src.address).storeCoins(src.amount);
},
parse: (src: Slice) => {
return {
Expand Down

0 comments on commit 5b27c35

Please sign in to comment.