{
  "version": 3,
  "sources": ["../../src/providers/DappProvider/helpers/computeNonces/computeNonce.ts"],
  "sourcesContent": ["/**\n * Returns the higher nonce between the latest nonce of the account and the transaction nonce\n * Used to set the correct nonce for a transaction in the batch\n */\nexport const computeNonce = ({\n  accountNonce,\n  transactionNonce\n}: {\n  accountNonce: number;\n  transactionNonce?: number;\n}) => {\n  if (!transactionNonce) {\n    return accountNonce;\n  }\n\n  return transactionNonce > accountNonce ? transactionNonce : accountNonce;\n};\n"],
  "mappings": "AAIO,IAAMA,EAAe,CAAC,CAC3B,aAAAC,EACA,iBAAAC,CACF,IAIOA,GAIEA,EAAmBD,EAAeC,EAHhCD",
  "names": ["computeNonce", "accountNonce", "transactionNonce"]
}
