Skip to content

Commit ff16457

Browse files
committed
Fix authenticated_signer -> authenticated_owner and Fn/FnMut mismatch
1 parent 099ac9d commit ff16457

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

examples/evm-bridge/src/contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

examples/evm-bridge/tests/process_deposit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
);

linera-core/src/environment/wallet/persistent.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

linera-service/src/exporter/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ struct RunOptions {
161161
pub enable_memory_profiling: bool,
162162
}
163163

164+
#[allow(unused_variables)]
164165
async fn start_health_server(
165166
address: std::net::SocketAddr,
166167
shutdown_signal: CancellationToken,

0 commit comments

Comments
 (0)