We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 459107c commit f0ae148Copy full SHA for f0ae148
contracts/src/lib.rs
@@ -90,7 +90,7 @@ impl PortfolioRebalancer {
90
}
91
92
let current_balance = portfolio.current_balances.get(asset.clone()).unwrap_or(0);
93
- portfolio.current_balances.set(asset, current_balance + amount);
+ portfolio.current_balances.set(asset.clone(), current_balance + amount);
94
95
env.storage().persistent().set(&DataKey::Portfolio(portfolio_id), &portfolio);
96
env.events().publish(
0 commit comments