code: function determineNonceFromReceipt(receipt, address) {
      const {sender, recipient} = receipt;
      return caseInsensitiveCompare(sender.wallet, address) ? sender.nonce : recipient.nonce;
  }
docs: Determine the settlement nonce for a wallet.
  @param {Receipt} receipt - The receipt object
  @param {Address} address - The wallet address
  @returns {number} The nonce