Comparing version 1.23.1 to 1.23.2
@@ -141,3 +141,3 @@ "use strict"; | ||
this.trace = []; | ||
if (t === undefined) | ||
if (t == null) | ||
return; | ||
@@ -144,0 +144,0 @@ this.trace = t.map((line) => new DryrunTraceLine(line)); |
@@ -920,6 +920,7 @@ "use strict"; | ||
txn.boxes = txnForEnc.apbx.map((box) => ({ | ||
// Translate foreign app index to app ID | ||
appIndex: box.i === 0 || box.i === txn.appIndex | ||
? txn.appIndex | ||
: txn.appForeignApps[box.i - 1], | ||
// We return 0 for the app ID so that it's guaranteed translateBoxReferences will | ||
// translate the app index back to 0. If we instead returned the called app ID, | ||
// translateBoxReferences would translate the app index to a nonzero value if the called | ||
// app is also in the foreign app array. | ||
appIndex: box.i ? txn.appForeignApps[box.i - 1] : 0, | ||
name: box.n, | ||
@@ -926,0 +927,0 @@ })); |
@@ -137,3 +137,3 @@ import { Application, ApplicationParams, ApplicationStateSchema, DryrunRequest, } from './client/v2/algod/models/types'; | ||
this.trace = []; | ||
if (t === undefined) | ||
if (t == null) | ||
return; | ||
@@ -140,0 +140,0 @@ this.trace = t.map((line) => new DryrunTraceLine(line)); |
@@ -891,6 +891,7 @@ import base32 from 'hi-base32'; | ||
txn.boxes = txnForEnc.apbx.map((box) => ({ | ||
// Translate foreign app index to app ID | ||
appIndex: box.i === 0 || box.i === txn.appIndex | ||
? txn.appIndex | ||
: txn.appForeignApps[box.i - 1], | ||
// We return 0 for the app ID so that it's guaranteed translateBoxReferences will | ||
// translate the app index back to 0. If we instead returned the called app ID, | ||
// translateBoxReferences would translate the app index to a nonzero value if the called | ||
// app is also in the foreign app array. | ||
appIndex: box.i ? txn.appForeignApps[box.i - 1] : 0, | ||
name: box.n, | ||
@@ -897,0 +898,0 @@ })); |
{ | ||
"name": "algosdk", | ||
"version": "1.23.1", | ||
"version": "1.23.2", | ||
"description": "The official JavaScript SDK for Algorand", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -25,4 +25,4 @@ # js-algorand-sdk | ||
<script | ||
src="https://unpkg.com/algosdk@v1.22.0/dist/browser/algosdk.min.js" | ||
integrity="sha384-yEGXwnKn3JOtQMo5eTDgi7YeYt0O8uemu2f52V60pJcLsZf7vIKVyDjRfaK6gf1G" | ||
src="https://unpkg.com/algosdk@v1.23.2/dist/browser/algosdk.min.js" | ||
integrity="sha384-1gIB0FiLMNmJ7adAfBOdH20Mnw0DZarB9D3PTozUAhKn/uT9CpHdaSbBIpmZTgrU" | ||
crossorigin="anonymous" | ||
@@ -36,4 +36,4 @@ ></script> | ||
<script | ||
src="https://cdn.jsdelivr.net/npm/algosdk@v1.22.0/dist/browser/algosdk.min.js" | ||
integrity="sha384-yEGXwnKn3JOtQMo5eTDgi7YeYt0O8uemu2f52V60pJcLsZf7vIKVyDjRfaK6gf1G" | ||
src="https://cdn.jsdelivr.net/npm/algosdk@v1.23.2/dist/browser/algosdk.min.js" | ||
integrity="sha384-1gIB0FiLMNmJ7adAfBOdH20Mnw0DZarB9D3PTozUAhKn/uT9CpHdaSbBIpmZTgrU" | ||
crossorigin="anonymous" | ||
@@ -40,0 +40,0 @@ ></script> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5119443
57470