Fix typo in transaction validation

This commit is contained in:
Gary Wang 2020-09-22 08:21:12 -07:00
parent 1dc469e625
commit 18ca87638e
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ function isSafeInstruction(publicKeys, owner, instructions) {
if (ownerPubkey && owner.equals(ownerPubkey)) { if (ownerPubkey && owner.equals(ownerPubkey)) {
accountStates[openOrdersPubkey.toBase58()] = states.OWNED; accountStates[openOrdersPubkey.toBase58()] = states.OWNED;
} else { } else {
unsafe = false; unsafe = true;
} }
} else if (instruction.type === 'initializeAccount') { } else if (instruction.type === 'initializeAccount') {
// New SPL token accounts are only considered safe if they are owned by this wallet and newly created // New SPL token accounts are only considered safe if they are owned by this wallet and newly created