Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Jun 10, 2024
1 parent 712d58d commit 5a329a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/erc165/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 5a329a1

Please sign in to comment.