Skip to content

Commit

Permalink
fix(wallet): fix transaction id overflow error
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocao committed Feb 7, 2020
1 parent a74f9d1 commit 53b216e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wallet/src/repository/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ where
.collect();

Ok(types::DRTransaction::new(body, signatures))
}
}

fn _create_transaction_components(
&self,
Expand Down Expand Up @@ -601,7 +601,7 @@ where
let txn_id = state.transaction_next_id;
let txn_next_id = txn_id
.checked_add(1)
.ok_or_else(|| Error::TransactionValueOverflow)?;
.ok_or_else(|| Error::TransactionIdOverflow)?;

let mut batch = self.db.batch();

Expand Down

0 comments on commit 53b216e

Please sign in to comment.