{
  "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": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kBAAAE,IAAA,eAAAC,EAAAH,GAIO,MAAME,EAAe,CAAC,CAC3B,aAAAE,EACA,iBAAAC,CACF,IAIOA,GAIEA,EAAmBD,EAAeC,EAHhCD",
  "names": ["computeNonce_exports", "__export", "computeNonce", "__toCommonJS", "accountNonce", "transactionNonce"]
}
