Skip to content

Commit

Permalink
Merge pull request #14 from tonlabs/0.3.3-rc
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
d3p authored Nov 16, 2022
2 parents 64f5caf + 80fbcbe commit 7e0c88a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

All notable changes to this project will be documented in this file.

## [0.3.3] – 2022-11-14

### Fix

- Fixed a bug that caused the error to disappear instead of being thrown.

- Fixed a test that started to fail after improving message processing speed in Evernode-SE.


## [0.3.2] – 2022-10-18
### Fix
- Minor fix, considering accounts with type "NonExist", which BOC is empty.
Expand Down
6 changes: 3 additions & 3 deletions __tests__/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const helloContract = () => loadContract("Hello");

test("Account Basic Usage", async () => {
const client = TonClient.default;
const startTime = Date.now();
const startTimeInSeconds = Math.floor(Date.now() / 1000);

const acc = new Account(helloContract(), {
signer: signerKeys(await client.crypto.generate_random_sign_keys()),
Expand All @@ -35,8 +35,8 @@ test("Account Basic Usage", async () => {
expect(response.transaction.id).toHaveLength(64);

response = await acc.runLocal("sayHello", {});
const timestamp = Number(response.decoded?.output.value0) * 1000;
expect(timestamp).toBeGreaterThan(startTime);
const timestampInSeconds = Number(response.decoded?.output.value0);
expect(timestampInSeconds).toBeGreaterThanOrEqual(startTimeInSeconds);
});

test("Calc Fees", async () => {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eversdk/appkit",
"version": "0.3.2",
"version": "0.3.3",
"description": "FreeTON SDK: Application Kit",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -33,12 +33,12 @@
"node": ">=6"
},
"dependencies": {
"@eversdk/core": "^1"
"@eversdk/core": "^1.38.1"
},
"devDependencies": {
"@babel/preset-env": "^7.13.10",
"@babel/preset-typescript": "^7.13.0",
"@eversdk/lib-node": "^1",
"@eversdk/lib-node": "^1.38.1",
"@types/jest": "^26.0.21",
"@types/node": "^14.14.35",
"jest": "^26.6.3",
Expand Down
3 changes: 2 additions & 1 deletion src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export type AccountOptions = {
*/
export type AccountRunOptions = {
/**
* Is not specified then this.signer
* If not specified then this.signer
*/
signer?: Signer,
}
Expand Down Expand Up @@ -589,6 +589,7 @@ export class Account {
acc_type: AccountType.nonExist,
};
}
throw err;
}
}

Expand Down

0 comments on commit 7e0c88a

Please sign in to comment.