@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.
@@ -817,15 +817,15 @@ class AppClient {
817
817
  * if none provided and throws an error if neither provided */
818
818
  getSender(sender) {
819
819
  if (!sender && !this._defaultSender) {
820
- throw new Error(`No sender provided and no default sender present in app client for call to app ${this._appName}`);
820
+ throw new Error(`No sender provided and no default sender present in app factory for call to app ${this._appName}`);
821
821
  }
822
822
  return sender ?? this._defaultSender;
823
823
  }
824
824
  /** Returns the signer for a call, using the provided signer or the `defaultSigner`
825
- * if no signer was provided and the call will use default sender
825
+ * if no signer was provided and the sender resolves to the default sender, the call will use default signer
826
826
  * or `undefined` otherwise (so the signer is resolved from `AlgorandClient`) */
827
827
  getSigner(sender, signer) {
828
- return signer ?? (!sender ? this._defaultSigner : undefined);
828
+ return signer ?? (!sender || sender === this._defaultSender ? this._defaultSigner : undefined);
829
829
  }
830
830
  getBareParams(params, onComplete) {
831
831
  return {