Skip to content

Commit

Permalink
fix: changed from to_string to to_owned
Browse files Browse the repository at this point in the history
  • Loading branch information
alenmestrov committed Nov 8, 2024
1 parent c8dffbc commit 9c6cd5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/context-config/src/mutate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ impl ContextConfigs {
.transfer(env::attached_deposit())
.deploy_contract(self.proxy_code.get().clone().unwrap())
.function_call(
"init".to_string(),
"init".to_owned(),
serde_json::to_vec(&json!({
"context_id": context_id,
"context_config_account_id": env::current_account_id()
Expand Down Expand Up @@ -346,7 +346,7 @@ impl ContextConfigs {
// Call the update method on the proxy contract
Promise::new(proxy_account_id.clone())
.function_call(
"update_contract".to_string(),
"update_contract".to_owned(),
new_code,
NearToken::from_near(0),
Gas::from_tgas(100),
Expand Down

0 comments on commit 9c6cd5e

Please sign in to comment.