From feb286ad2b7ff1c01306b451f44b3b1fd753be90 Mon Sep 17 00:00:00 2001 From: Maga Date: Fri, 15 Jul 2022 09:18:21 +0300 Subject: [PATCH] Fix default flag for GiverWallet --- README.md | 8 +++++--- package.json | 2 +- sample-project-typescript/giverSettings/index.ts | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d486c6f..18469eb 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ const config: LockliftConfig = { // This giver is default local-node giverV2 giver: { // Check if you need provide custom giver - giverFactory: (ever, keyPair, address) => new Giver(ever, keyPair, address), + giverFactory: (ever, keyPair, address) => new SimpleGiver(ever, keyPair, address), address: "0:ece57bcc6c530283becbbd8a3b24d3c5987cdddc3c8b7b33be6e4a6312490415", key: "172af540e43a524763dd53b26a066d472a97c4de37d5498170564510608250c3", }, @@ -139,7 +139,7 @@ const config: LockliftConfig = { address: "0:ece57bcc6c530283becbbd8a3b24d3c5987cdddc3c8b7b33be6e4a6312490415", // you can use bip39 phrase instead of key phrase: "action inject penalty envelope rabbit element slim tornado dinner pizza off blood", - account_id: 0, + accountId: 0, }, keys: { // Use everdev to generate your phrase @@ -160,8 +160,10 @@ const config: LockliftConfig = { This command uses the specified TON Solidity compiler and TVM linker to build all project contracts. +```bash +npx locklift build +``` ``` -$ npx locklift build Found 1 sources Building contracts/Sample.sol Compiled contracts/Sample.sol diff --git a/package.json b/package.json index 5b1b17e..e752a21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "locklift", - "version": "2.1.2", + "version": "2.1.3", "description": "Node JS framework for working with Ever contracts. Inspired by Truffle and Hardhat. Helps you to build, test, run and maintain your smart contracts.", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/sample-project-typescript/giverSettings/index.ts b/sample-project-typescript/giverSettings/index.ts index 58dfb1e..542eb6f 100644 --- a/sample-project-typescript/giverSettings/index.ts +++ b/sample-project-typescript/giverSettings/index.ts @@ -76,7 +76,7 @@ export class GiverWallet implements Giver { value: value, dest: sendTo, bounce: false, - flags: 1, + flags: 3, payload: "", }) .sendExternal({ publicKey: this.keyPair.publicKey });