@algorandfoundation/algokit-utils 7.0.0 → 7.0.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/README.md CHANGED
@@ -6,7 +6,7 @@ The goal of this library is to provide intuitive, productive utility functions t
6
6
 
7
7
  Note: If you prefer Python there's an equivalent [Python utility library](https://github.com/algorandfoundation/algokit-utils-py).
8
8
 
9
- [Install](#install) | [Documentation](docs/README.md)
9
+ [Install](#install) | [Documentation](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/docs/README.md)
10
10
 
11
11
  ## Install
12
12
 
@@ -22,14 +22,14 @@ Then to import it:
22
22
  import { AlgorandClient, Config } from '@algorandfoundation/algokit-utils'
23
23
  ```
24
24
 
25
- See [usage](./docs/README.md#usage) for more details.
25
+ See [usage](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/docs/README.md#usage) for more details.
26
26
 
27
27
  ## Migration
28
28
 
29
29
  Whilst we aim to minimise breaking changes, there are situations where they are required.
30
30
  JSDoc deprecations should guide you through most migration paths inside your IDE, however the migration guides will provide more detailed information should you need it.
31
31
 
32
- If you're targetting v7, please refer to the [v7 migration guide](./docs/v7-migration.md).
32
+ If you're targetting v7, please refer to the [v7 migration guide](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/docs/v7-migration.md).
33
33
 
34
34
  ## Guiding principles
35
35
 
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "**"
7
7
  ],
8
8
  "name": "@algorandfoundation/algokit-utils",
9
- "version": "7.0.0",
9
+ "version": "7.0.1",
10
10
  "private": false,
11
11
  "description": "A set of core Algorand utilities written in TypeScript and released via npm that make it easier to build solutions on Algorand.",
12
12
  "author": "Algorand Foundation",
@@ -457,7 +457,7 @@ export declare class AppClient {
457
457
  globalInts: number;
458
458
  globalByteSlices: number;
459
459
  localInts: number;
460
- localByteSlices: number; /** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
460
+ localByteSlices: number;
461
461
  } | undefined;
462
462
  extraProgramPages?: number | undefined;
463
463
  }> | AppMethodCall<{
@@ -1605,7 +1605,7 @@ export declare class AppClient {
1605
1605
  * if none provided and throws an error if neither provided */
1606
1606
  private getSender;
1607
1607
  /** Returns the signer for a call, using the provided signer or the `defaultSigner`
1608
- * if no signer was provided and the call will use default sender
1608
+ * if no signer was provided and the sender resolves to the default sender, the call will use default signer
1609
1609
  * or `undefined` otherwise (so the signer is resolved from `AlgorandClient`) */
1610
1610
  private getSigner;
1611
1611
  private getBareParams;
@@ -819,15 +819,15 @@ class AppClient {
819
819
  * if none provided and throws an error if neither provided */
820
820
  getSender(sender) {
821
821
  if (!sender && !this._defaultSender) {
822
- throw new Error(`No sender provided and no default sender present in app client for call to app ${this._appName}`);
822
+ throw new Error(`No sender provided and no default sender present in app factory for call to app ${this._appName}`);
823
823
  }
824
824
  return sender ?? this._defaultSender;
825
825
  }
826
826
  /** Returns the signer for a call, using the provided signer or the `defaultSigner`
827
- * if no signer was provided and the call will use default sender
827
+ * if no signer was provided and the sender resolves to the default sender, the call will use default signer
828
828
  * or `undefined` otherwise (so the signer is resolved from `AlgorandClient`) */
829
829
  getSigner(sender, signer) {
830
- return signer ?? (!sender ? this._defaultSigner : undefined);
830
+ return signer ?? (!sender || sender === this._defaultSender ? this._defaultSigner : undefined);
831
831
  }
832
832
  getBareParams(params, onComplete) {
833
833
  return {