@ton/sandbox 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.13.1] - 2023-10-10
9
+
10
+ ### Fixed
11
+
12
+ - Fixed a bug in `Blockchain` that led to storage fetch errors (for example, network errors in `RemoteBlockchainStorage`) being cached and breaking that contract address forever
13
+
8
14
  ## [0.13.0] - 2023-10-05
9
15
 
10
16
  ### Changed
@@ -318,9 +318,16 @@ class Blockchain {
318
318
  return promise;
319
319
  }
320
320
  async getContract(address) {
321
- const contract = await this.startFetchingContract(address);
322
- this.contractFetches.delete(address.toRawString());
323
- return contract;
321
+ try {
322
+ const contract = await this.startFetchingContract(address);
323
+ return contract;
324
+ }
325
+ catch (e) {
326
+ throw e;
327
+ }
328
+ finally {
329
+ this.contractFetches.delete(address.toRawString());
330
+ }
324
331
  }
325
332
  get verbosity() {
326
333
  return this.logsVerbosity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ton/sandbox",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "TON transaction emulator",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",