Skip to content

Commit

Permalink
ton access fix (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharyakir authored Dec 18, 2023
1 parent f083939 commit f97a08f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 36 deletions.
44 changes: 14 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "ton-src-backend",
"dependencies": {
"@babel/preset-env": "^7.18.6",
"@orbs-network/ton-gateway": "^2.1.0",
"@ton-community/contract-verifier-sdk": "^1.1.1",
"@orbs-network/ton-access": "^2.3.3",
"@ton-community/contract-verifier-sdk": "^1.1.2",
"async": "^3.2.4",
"base64url": "^3.0.1",
"bigint-buffer": "^1.1.5",
Expand Down
7 changes: 4 additions & 3 deletions src/source-verifier/tact-source-verifier.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Cell } from "ton";
import { SourceVerifier, SourceVerifyPayload, CompileResult } from "../types";
import { PackageFileFormat } from "tact-1.1.0";
import type { verify as VerifyFunction } from "tact-1.1.0";
import { PackageFileFormat } from "tact-1.1.4";
import type { verify as VerifyFunction } from "tact-1.1.4";
import path from "path";
import { timeoutPromise } from "../utils";

Expand Down Expand Up @@ -51,10 +51,11 @@ export class TactSourceVerifier implements SourceVerifier {
log: output.push,
},
}),
parseInt(process.env.COMPILE_TIMEOUT ?? "1000"),
parseInt(process.env.COMPILE_TIMEOUT ?? "3000"),
);

if (!v.ok) {
console.error("Failed to compile tact package", output.join("\n"));
return {
compilerSettings,
error: [v.error, ...output].join("\n"),
Expand Down
2 changes: 1 addition & 1 deletion src/ton-reader-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Address, Cell, Dictionary, TonClient } from "ton";
import { DictionaryValue } from "ton-core";
import { toBigIntBE, toBufferBE } from "bigint-buffer";
import { sha256 } from "./utils";
import { getHttpEndpoint } from "@orbs-network/ton-gateway";
import { getHttpEndpoint } from "@orbs-network/ton-access";
import { ContractVerifier } from "@ton-community/contract-verifier-sdk";
import { VerifierRegistry } from "./wrappers/verifier-registry";

Expand Down

0 comments on commit f97a08f

Please sign in to comment.