File tree Expand file tree Collapse file tree
linera-core/src/environment/wallet
linera-service/src/exporter Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ impl Contract for EvmBridgeContract {
8585
8686 // Only cache when called by an authenticated signer (chain owner),
8787 // preventing unauthenticated callers from bloating state.
88- if self . runtime . authenticated_signer ( ) . is_some ( ) {
88+ if self . runtime . authenticated_owner ( ) . is_some ( ) {
8989 self . state
9090 . verified_block_hashes
9191 . insert ( & block_hash)
Original file line number Diff line number Diff line change @@ -716,7 +716,7 @@ async fn test_verify_block_hash_anvil() {
716716 . add_block ( |block| {
717717 block. with_operation (
718718 bridge_app_id,
719- BridgeOperation :: VerifyBlockHash {
719+ & BridgeOperation :: VerifyBlockHash {
720720 block_hash : block_hash. 0 ,
721721 } ,
722722 ) ;
@@ -741,7 +741,7 @@ async fn test_verify_block_hash_not_found() {
741741 . try_add_block ( |block| {
742742 block. with_operation (
743743 bridge_app_id,
744- BridgeOperation :: VerifyBlockHash {
744+ & BridgeOperation :: VerifyBlockHash {
745745 block_hash : fake_hash,
746746 } ,
747747 ) ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ impl Wallet for PersistentWallet {
5353 async fn modify (
5454 & self ,
5555 id : ChainId ,
56- f : impl FnMut ( & mut Chain ) + Send ,
56+ f : impl Fn ( & mut Chain ) + Send ,
5757 ) -> Result < Option < ( ) > , Self :: Error > {
5858 self . mutate ( id, f) . transpose ( )
5959 }
@@ -163,7 +163,7 @@ impl PersistentWallet {
163163 pub fn mutate < R > (
164164 & self ,
165165 chain_id : ChainId ,
166- mutate : impl FnMut ( & mut Chain ) -> R ,
166+ mutate : impl Fn ( & mut Chain ) -> R ,
167167 ) -> Option < Result < R , persistent:: file:: Error > > {
168168 self . 0
169169 . chains
Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ struct RunOptions {
161161 pub enable_memory_profiling : bool ,
162162}
163163
164+ #[ allow( unused_variables) ]
164165async fn start_health_server (
165166 address : std:: net:: SocketAddr ,
166167 shutdown_signal : CancellationToken ,
You can’t perform that action at this time.
0 commit comments