4f0794664ab497e77f60110cdac005fe4bfbbbea21a454850f99d7aa51d430ee.json raw

   1  {"ast":null,"code":"import { MintQuoteState } from '../model/types/index.js';\nexport function handleMintQuoteResponseDeprecated(response) {\n  // if the response MeltQuoteResponse has a \"paid\" flag, we monkey patch it to the state enum\n  if (!response.state) {\n    console.warn(\"Field 'state' not found in MintQuoteResponse. Update NUT-04 of mint: https://github.com/cashubtc/nuts/pull/141)\");\n    if (typeof response.paid === 'boolean') {\n      response.state = response.paid ? MintQuoteState.PAID : MintQuoteState.UNPAID;\n    }\n  }\n  return response;\n}\n//# sourceMappingURL=nut-04.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}