Skip to content

Commit

Permalink
fix: deploy flag
Browse files Browse the repository at this point in the history
  • Loading branch information
krigga committed Nov 25, 2023
1 parent 495d36a commit 33352f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/test/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 33352f6

Please sign in to comment.