Skip to content

Commit bbb04f4

Browse files
Merge pull request #1343 from mintlayer/update/storage_version
Bump storage version for the release
2 parents 84259b5 + ff8dac1 commit bbb04f4

File tree

2 files changed

+4
-4
lines changed
  • chainstate

2 files changed

+4
-4
lines changed

chainstate/storage/src/internal/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use serialization::{Decode, Encode};
1919
pub struct ChainstateStorageVersion(u32);
2020

2121
impl ChainstateStorageVersion {
22-
pub const CURRENT: Self = Self(3);
22+
pub const CURRENT: Self = Self(4);
2323

2424
pub fn new(value: u32) -> Self {
2525
Self(value)

chainstate/tx-verifier/src/transaction_verifier/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ where
441441
.inputs()
442442
.iter()
443443
.filter_map(|input| match input {
444-
TxInput::Utxo(outpoint) => {
444+
TxInput::Utxo(ref outpoint) => {
445445
self.spend_input_from_utxo(tx_source, outpoint).transpose()
446446
}
447447
TxInput::Account(outpoint) => {
@@ -720,7 +720,7 @@ where
720720
});
721721
Some(res)
722722
}
723-
AccountCommand::UnmintTokens(token_id) => {
723+
AccountCommand::UnmintTokens(ref token_id) => {
724724
let res = self
725725
.spend_input_from_account(*nonce, account_op.clone().into())
726726
.and_then(|_| {
@@ -841,7 +841,7 @@ where
841841
| TxOutput::LockThenTransfer(output_value, _, _) => {
842842
match output_value {
843843
OutputValue::Coin(_) | OutputValue::TokenV0(_) => Ok(()),
844-
OutputValue::TokenV1(token_id, _) => {
844+
OutputValue::TokenV1(ref token_id, _) => {
845845
// TODO: when NFTs are stored in accounting None should become an error
846846
if let Some(token_data) = self.get_token_data(token_id)? {
847847
match token_data {

0 commit comments

Comments
 (0)