mirror of
https://github.com/zkopru-network/zkopru.git
synced 2026-04-24 03:00:03 -04:00
fix: early exit transaction if no operations
This commit is contained in:
@@ -427,6 +427,8 @@ export class IndexedDBConnector extends DB {
|
||||
// to be accessed. Once that is done create the transaction and call the
|
||||
// start function to begin executing the transaction operations
|
||||
operation(db)
|
||||
// no operations to commit
|
||||
if (!stores.length) return (start as Function)()
|
||||
// get a unique list of stores
|
||||
const storeNames = {}
|
||||
const storesUnique = stores.filter(store => {
|
||||
|
||||
Reference in New Issue
Block a user