From 5a329a1b9d1a90e21948d8a6e096fc577fa7ab92 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 10 Jun 2024 19:49:35 +0000 Subject: [PATCH] Update mod.rs --- src/erc165/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/erc165/mod.rs b/src/erc165/mod.rs index 282f577..0c28235 100644 --- a/src/erc165/mod.rs +++ b/src/erc165/mod.rs @@ -54,8 +54,9 @@ async fn supports_erc165_check2(client: &ReadableClientHttp, contract_address: A /// /// https://eips.ethereum.org/EIPS/eip-165#how-to-detect-if-a-contract-implements-erc-165 pub async fn supports_erc165(client: &ReadableClientHttp, contract_address: Address) -> bool { - supports_erc165_check1(client, contract_address).await - && supports_erc165_check2(client, contract_address).await + let check1 = supports_erc165_check1(client, contract_address); + let check2 = supports_erc165_check2(client, contract_address); + check1.await && check2.await } #[cfg(test)]