Skip to content

Commit

Permalink
fix: handle custom ledger in read-params
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Nov 20, 2024
1 parent 1dff78f commit ea3ee7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions balius-runtime/src/ledgers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ impl wit::Host for Ledger {
match self {
Ledger::Mock(ledger) => ledger.read_params().await,
Ledger::U5C(ledger) => ledger.read_params().await,
Ledger::Custom(ledger) => {
let mut lock = ledger.lock().await;
lock.read_params().await
}
}
}
}

0 comments on commit ea3ee7b

Please sign in to comment.