mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 09:47:56 +00:00
bug fix - if statement logic (#5283)
if statement logic for recently sent block was inverted.
This commit is contained in:
@@ -276,7 +276,7 @@ impl<T: Trait> Module<T> {
|
||||
match last_send {
|
||||
// If we already have a value in storage and the block number is recent enough
|
||||
// we avoid sending another transaction at this time.
|
||||
Some(Some(block)) if block + T::GracePeriod::get() < block_number => {
|
||||
Some(Some(block)) if block_number < block + T::GracePeriod::get() => {
|
||||
Err(RECENTLY_SENT)
|
||||
},
|
||||
// In every other case we attempt to acquire the lock and send a transaction.
|
||||
|
||||
Reference in New Issue
Block a user