Skip to content

Commit a40d1cc

Browse files
committed
Fix migrations
Signed-off-by: deniallugo <[email protected]>
1 parent a7d2c97 commit a40d1cc

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
CREATE TYPE token_kind AS ENUM ('ERC20', 'NFT', 'None');
22
ALTER TABLE tokens ADD COLUMN kind token_kind NOT NULL DEFAULT 'ERC20';
33
UPDATE tokens SET kind = 'NFT' WHERE is_nft = true;
4-
ALTER TABLE tokens DROP COLUMN is_nft;

core/lib/storage/src/chain/state/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ impl<'a, 'c> StateSchema<'a, 'c> {
789789
pub async fn mint_nft_updates_set_nonces(&mut self) -> QueryResult<()> {
790790
let records = sqlx::query!(
791791
r#"
792-
SELECT tx FROM executed_transactions WHERE tx->'type' = '"MintNFT"'
792+
SELECT tx FROM executed_transactions WHERE tx->'type' = '"MintNFT"' AND success = true
793793
ORDER BY nonce
794794
"#
795795
)

0 commit comments

Comments
 (0)