Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepinho committed May 14, 2024
1 parent 5d21a45 commit f6cc1aa
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/wasm/crate/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,9 @@ impl IndexedDBStorage {
&self,
auction_id: AuctionId,
) -> WasmResult<OutstandingReserves> {
let tx = self
.db
.transaction_on_one(&self.constants.tables.auctions)?;
let store = tx.object_store(&self.constants.tables.auctions)?;

store
self.db
.transaction_on_one(&self.constants.tables.auctions)?
.object_store(&self.constants.tables.auctions)?
.get::<JsValue>(&byte_array_to_base64(&auction_id.to_proto().inner).into())?
.await?
.map(|auction| {
Expand Down

0 comments on commit f6cc1aa

Please sign in to comment.