Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

Commit

Permalink
fix apis mut ref
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Feb 22, 2024
1 parent ff9c49a commit d35b9c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drink/src/sandbox/contracts_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ where
/// * `storage_deposit_limit` - The storage deposit limit for the contract call.
#[allow(clippy::type_complexity, clippy::too_many_arguments)]
pub fn deploy_contract(
&mut self,
&self,
contract_bytes: Vec<u8>,
value: BalanceOf<Config::Runtime>,
data: Vec<u8>,
Expand Down Expand Up @@ -72,7 +72,7 @@ where
/// * `storage_deposit_limit` - The storage deposit limit for the contract call.
#[allow(clippy::type_complexity, clippy::too_many_arguments)]
pub fn instantiate_contract(
&mut self,
&self,
code_hash: Vec<u8>,
value: BalanceOf<Config::Runtime>,
data: Vec<u8>,
Expand Down Expand Up @@ -112,7 +112,7 @@ where
/// * `origin` - The sender of the contract call.
/// * `storage_deposit_limit` - The storage deposit limit for the contract call.
pub fn upload_contract(
&mut self,
&self,
contract_bytes: Vec<u8>,
origin: AccountIdFor<Config::Runtime>,
storage_deposit_limit: Option<BalanceOf<Config::Runtime>>,
Expand Down Expand Up @@ -141,7 +141,7 @@ where
/// * `storage_deposit_limit` - The storage deposit limit for the contract call.
#[allow(clippy::too_many_arguments)]
pub fn call_contract(
&mut self,
&self,
address: AccountIdFor<Config::Runtime>,
value: BalanceOf<Config::Runtime>,
data: Vec<u8>,
Expand Down

0 comments on commit d35b9c1

Please sign in to comment.