Skip to content

Commit 3b1c10c

Browse files
committed
Use Object.prototype.hasOwnProperty.call(hintsMap, id)
1 parent 5a3bd1e commit 3b1c10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

@stellar/typescript-wallet-sdk/src/walletSdk/Uri/sep7Parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export const sep7ReplacementsFromString = (
186186

187187
const isBalanced =
188188
txrepIds.length === hintIds.length &&
189-
txrepIds.every((id) => hintsMap.hasOwnProperty(id));
189+
txrepIds.every((id) => Object.prototype.hasOwnProperty.call(hintsMap, id));
190190

191191
if (!isBalanced) {
192192
throw new Sep7InvalidUriError(

0 commit comments

Comments
 (0)