diff --git a/CHANGELOG.md b/CHANGELOG.md index 7317fd9..d1f5ba2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.2] - 2023-11-25 + +### Fixed + +- Fixed the `deploy` flag in flat transactions + ## [0.4.1] - 2023-11-24 ### Fixed diff --git a/package.json b/package.json index e8fde56..88f8000 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ton/test-utils", - "version": "0.4.1", + "version": "0.4.2", "main": "dist/index.js", "license": "MIT", "description": "Utilities for writing tests for smart contract systems in TON", diff --git a/src/test/transaction.ts b/src/test/transaction.ts index d6e2e71..8f3afe6 100644 --- a/src/test/transaction.ts +++ b/src/test/transaction.ts @@ -61,7 +61,7 @@ export function flattenTransaction(tx: Transaction): FlatTransaction { op: extractOp(tx.inMessage.body), initData: tx.inMessage.init?.data ?? undefined, initCode: tx.inMessage.init?.code ?? undefined, - deploy: tx.inMessage.init ? (tx.oldStatus == 'active' && tx.endStatus === 'active') : false, + deploy: tx.inMessage.init ? (tx.oldStatus !== 'active' && tx.endStatus === 'active') : false, } : { from: undefined, to: undefined,