Skip to content

Commit

Permalink
Update contracts/easy-poll/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Amit Yadav <[email protected]>
  • Loading branch information
sczembor and amityadav0 authored Sep 25, 2023
1 parent 7ddfcee commit 9f1d878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/easy-poll/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl Contract {
// Check the attached deposit is sufficient
let required_deposit =
(env::storage_usage() - storage_start) as u128 * env::storage_byte_cost();
if storage_deposit > required_deposit {
if storage_deposit < required_deposit {
return Err(PollError::InsufficientDeposit(required_deposit));
}

Expand Down

0 comments on commit 9f1d878

Please sign in to comment.