Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
wc117 committed Jan 5, 2024
1 parent 959c56d commit e610e13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ pub mod execute {
)))
}
tokens.push(Token::Array(tokens_callback_args));
tokens.push(Token::Uint(Uint::from_big_endian(
&remaining_count.to_be_bytes()
)));
WITHDRAW_TIMESTAMP.save(
deps.storage,
(bot_id.to_string(), remaining_count.to_string()),
Expand All @@ -180,6 +183,9 @@ pub mod execute {
)))
}
tokens.push(Token::Array(tokens_callback_args));
tokens.push(Token::Uint(Uint::from_big_endian(
&remaining_count.to_be_bytes()
)));
WITHDRAW_TIMESTAMP.save(
deps.storage,
(bot_id.to_string(), remaining_count.to_string()),
Expand Down

0 comments on commit e610e13

Please sign in to comment.