File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tx-verifier/src/transaction_verifier Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ use serialization::{Decode, Encode};
1919pub struct ChainstateStorageVersion ( u32 ) ;
2020
2121impl 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)
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments