ignore the unit field, the mints we allow are only sats anyways.
This commit is contained in:
parent
8aa8c2752b
commit
4a177547fb
1 changed files with 0 additions and 2 deletions
|
@ -30,8 +30,6 @@ export class TokenInfo {
|
|||
const tokens = decodedTokenData.token;
|
||||
const amount = tokens.flatMap(t => t.proofs).reduce((c, x) => c + x.amount, 0);
|
||||
|
||||
if (decodedTokenData.unit !== 'sat')
|
||||
throw new InvalidTokenException('Invalid token format. We only accept tokens denominated in sats');
|
||||
if(decodedTokenData.token.length === 0)
|
||||
throw new InvalidTokenException('Invalid token format. We only accept tokens with at least one proof');
|
||||
if (tokens.slice(1).some(t => t.mint !== tokens[0].mint))
|
||||
|
|
Loading…
Reference in a new issue