Skip to content

Commit

Permalink
Merge pull request #8 from rainlanguage/2024-11-30-update-typecast-ve…
Browse files Browse the repository at this point in the history
…rsion

init
  • Loading branch information
rouzwelt authored Nov 30, 2024
2 parents 80bb411 + 719d201 commit e86b46b
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 = "0e636d2bc865a49c6eaea95ab139465708a65698" }

[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 e86b46b

Please sign in to comment.