Skip to content

Commit

Permalink
fix: add ? when remove & accumulate lock info
Browse files Browse the repository at this point in the history
  • Loading branch information
ducphamle2 committed Feb 6, 2024
1 parent 2aa85bb commit 4f71286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/oraiswap_staking/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ pub fn remove_and_accumulate_lock_info(
for lock in lock_info.drain(0..index + 1) {
accumulated_amount += lock.amount;
}
bucket.save(asset_key, &lock_info);
bucket.save(asset_key, &lock_info)?;
Ok(accumulated_amount)
}
None => Ok(Uint128::zero()),
Expand Down

0 comments on commit 4f71286

Please sign in to comment.