Skip to content

Commit

Permalink
use "else if old_version == 1 && new_version == 2" check
Browse files Browse the repository at this point in the history
  • Loading branch information
laruh committed Sep 16, 2024
1 parent 041f99c commit e8be556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm2src/coins/nft/storage/wasm/wasm_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ impl TableSignature for NftTransferHistoryTable {
table.create_multi_index(CHAIN_IMAGE_DOMAIN_INDEX, &["chain", "image_domain"], false)?;
table.create_index("block_number", false)?;
table.create_index("chain", false)?;
} else if new_version == 2 {
} else if old_version == 1 && new_version == 2 {
// Migration from version 1 to version 2

console::log_1(&JsValue::from_str("Migrating from version 1 to version 2."));
Expand Down

0 comments on commit e8be556

Please sign in to comment.