Skip to content

Commit

Permalink
Merge pull request #203 from bitfinity-network/missing_endpoints
Browse files Browse the repository at this point in the history
Add is_evm_disabled endpoint
  • Loading branch information
ufoscout authored Nov 20, 2024
2 parents 637f598 + 886d9e1 commit c2b9b26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/evm-canister-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ impl<C: CanisterClient> EvmCanisterClient<C> {
self.client.update("admin_disable_evm", (disabled,)).await
}

/// Returns whether the EVM is disabled
pub async fn is_evm_disabled(&self) -> CanisterClientResult<bool> {
self.client.query("is_evm_disabled", ()).await
}

/// Adds permissions to a principal and returns the principal permissions
pub async fn admin_ic_permissions_add(
&self,
Expand Down

0 comments on commit c2b9b26

Please sign in to comment.