Skip to content

Commit

Permalink
verkle: add missing key and value encoding opts to batch options
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrocheleau committed Oct 22, 2023
1 parent 23bb5dd commit 4a98bef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/verkle/src/db/checkpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,16 @@ export class CheckpointDB implements DB {
batchOp.push({
type: 'del',
key: hexToBytes(key),
opts: {
keyEncoding: KeyEncoding.Bytes,
},
})
} else {
batchOp.push({
type: 'put',
key: hexToBytes(key),
value,
opts: { keyEncoding: KeyEncoding.Bytes, valueEncoding: ValueEncoding.Bytes },
})
}
}
Expand Down

0 comments on commit 4a98bef

Please sign in to comment.