Skip to content

Commit 0ea6d36

Browse files
committed
Fix type ambiguity in Bytecode::load_from_file callers
1 parent 76d13b1 commit 0ea6d36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

linera-client/src/client_context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,10 +816,10 @@ impl<Env: Environment> ClientContext<Env> {
816816
info!("Loading bytecode files");
817817
let contract_bytecode = Bytecode::load_from_file(&contract)
818818
.await
819-
.with_context(|| format!("failed to load contract bytecode from {:?}", &contract))?;
819+
.map_err(error::Inner::from)?;
820820
let service_bytecode = Bytecode::load_from_file(&service)
821821
.await
822-
.with_context(|| format!("failed to load service bytecode from {:?}", &service))?;
822+
.map_err(error::Inner::from)?;
823823

824824
info!("Publishing module");
825825
let (blobs, module_id) =

0 commit comments

Comments
 (0)