Skip to content

Commit

Permalink
feat: enable export-abi feature
Browse files Browse the repository at this point in the history
  • Loading branch information
bidzyyys committed Feb 11, 2025
1 parent 0ef21e1 commit 6884447
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions 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 contracts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ motsu.workspace = true
# Currently, the std feature is only used for testing purposes.
std = []
reentrant = ["stylus-sdk/reentrant"]
# export-abi = ["stylus-sdk/export-abi"]
export-abi = ["stylus-sdk/export-abi"]

[lib]
crate-type = ["lib"]
Expand Down
5 changes: 4 additions & 1 deletion contracts/src/access/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ impl IAccessControl for AccessControl {
self.roles.getter(role).has_role.get(account)
}

fn only_role(&self, role: B256) -> Result<(), Self::Error> {
fn only_role(
&self,
role: B256,
) -> Result<(), <Self as IAccessControl>::Error> {
self._check_role(role, msg::sender())
}

Expand Down
3 changes: 1 addition & 2 deletions lib/crypto/src/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ impl Verifier<KeccakBuilder> {
///
/// # Panics
///
/// * Will panic with an out-of-bounds error if the proof is malicious. See
/// <https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-wprv-93r4-jj2p>
/// * Will panic with an out-of-bounds error if the proof is malicious. See <https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-wprv-93r4-jj2p>
///
/// # Examples
///
Expand Down

0 comments on commit 6884447

Please sign in to comment.