From f552237fade05e7c2dfe4656696de29f088d1a45 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Sat, 30 Nov 2024 03:53:17 +0000 Subject: [PATCH] init --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/erc165/mod.rs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ca122d0..a922502 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -169,7 +169,7 @@ dependencies = [ [[package]] name = "alloy-ethers-typecast" version = "0.2.0" -source = "git+https://github.com/rainlanguage/alloy-ethers-typecast?rev=0881930a22e84db49ba955c5b88e790e1266ac66#0881930a22e84db49ba955c5b88e790e1266ac66" +source = "git+https://github.com/rainlanguage/alloy-ethers-typecast?rev=88b949130dd26be3dc7d514fbdcf15cfa3f79b2a#88b949130dd26be3dc7d514fbdcf15cfa3f79b2a" dependencies = [ "alloy", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 3571f4b..3f15c1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ repository = "https://github.com/rainlanguage/rain.erc" [dependencies] thiserror = "1.0.56" alloy = { version = "0.1.4", features = ["rand", "sol-types"] } -alloy-ethers-typecast = { git = "https://github.com/rainlanguage/alloy-ethers-typecast", rev = "0881930a22e84db49ba955c5b88e790e1266ac66" } +alloy-ethers-typecast = { git = "https://github.com/rainlanguage/alloy-ethers-typecast", rev = "88b949130dd26be3dc7d514fbdcf15cfa3f79b2a" } [dev-dependencies] serde = "1.0.203" diff --git a/src/erc165/mod.rs b/src/erc165/mod.rs index f7531e2..3c11c29 100644 --- a/src/erc165/mod.rs +++ b/src/erc165/mod.rs @@ -47,6 +47,7 @@ async fn supports_erc165_check1(client: &ReadableClientHttp, contract_address: A interfaceID: IERC165::supportsInterfaceCall::SELECTOR.into(), }, block_number: None, + gas: None, }; client.read(parameters).await.map(|v| v._0).unwrap_or(false) } @@ -60,6 +61,7 @@ async fn supports_erc165_check2(client: &ReadableClientHttp, contract_address: A interfaceID: [0xff, 0xff, 0xff, 0xff].into(), }, block_number: None, + gas: None, }; !client.read(parameters).await.map(|v| v._0).unwrap_or(true) }