Skip to content

Commit c54471f

Browse files
committed
refactor: remove unnecessary assertion
1 parent 5f0c8eb commit c54471f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/mina/v1/transaction-validation.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ async function verifyAccountUpdate(
245245

246246
let verificationKeyRaw = account.zkapp?.verificationKey;
247247
assert(verificationKeyRaw !== undefined, 'Account does not have a verification key');
248-
let verificationKey = verificationKeyRaw?.data;
249-
assert(verificationKey !== undefined, 'Account does not have a verification key data');
248+
let verificationKey = verificationKeyRaw.data;
250249

251250
const isVkValid = await checkVkValidity(verificationKeyRaw);
252251
if (!isVkValid)

0 commit comments

Comments
 (0)