From 368ad258a82204d0004b7321f1015373fb4d17b9 Mon Sep 17 00:00:00 2001 From: Alfonso de la Rocha Date: Fri, 7 Jul 2023 10:55:37 +0200 Subject: [PATCH] minor fixes --- runtime/src/runtime/fvm.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/runtime/src/runtime/fvm.rs b/runtime/src/runtime/fvm.rs index a0e75dc..c529787 100644 --- a/runtime/src/runtime/fvm.rs +++ b/runtime/src/runtime/fvm.rs @@ -450,26 +450,18 @@ pub fn resolve_secp_bls(rt: &mut impl Runtime, addr: &Address) -> Result
Result { +pub fn equal_account_id(rt: &mut impl Runtime, a: &Address, b: &Address) -> bool { let a_id = match rt.resolve_address(a) { Some(id) => id, None => { - return Err(ActorError::illegal_argument(String::from( - "couldn't resolve actor address", - ))) + return false; } }; let b_id = match rt.resolve_address(b) { Some(id) => id, None => { - return Err(ActorError::illegal_argument(String::from( - "couldn't resolve actor address", - ))) + return false; } }; - Ok(a_id == b_id) + a_id == b_id }