Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Nov 30, 2024
1 parent 80bb411 commit f552237
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions src/erc165/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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)
}
Expand Down

0 comments on commit f552237

Please sign in to comment.