From 7342927e916bc4c6634c031b3a32a388250aece4 Mon Sep 17 00:00:00 2001 From: nolash Date: Sun, 29 Aug 2021 10:43:12 +0200 Subject: [PATCH] Normalize initial INIT lock address --- .../db/migrations/default/versions/75d4767b3031_lock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/cic-eth/cic_eth/db/migrations/default/versions/75d4767b3031_lock.py b/apps/cic-eth/cic_eth/db/migrations/default/versions/75d4767b3031_lock.py index cfbbff09..dec5cf52 100644 --- a/apps/cic-eth/cic_eth/db/migrations/default/versions/75d4767b3031_lock.py +++ b/apps/cic-eth/cic_eth/db/migrations/default/versions/75d4767b3031_lock.py @@ -8,8 +8,8 @@ Create Date: 2021-04-02 18:41:20.864265 import datetime from alembic import op import sqlalchemy as sa -from chainlib.eth.constant import ZERO_ADDRESS from cic_eth.db.enum import LockEnum +from cic_eth.encode import ZERO_ADDRESS_NORMAL # revision identifiers, used by Alembic. @@ -30,7 +30,7 @@ def upgrade(): sa.Column("otx_id", sa.Integer, sa.ForeignKey('otx.id'), nullable=True), ) op.create_index('idx_chain_address', 'lock', ['blockchain', 'address'], unique=True) - op.execute("INSERT INTO lock (address, date_created, blockchain, flags) VALUES('{}', '{}', '::', {})".format(ZERO_ADDRESS, datetime.datetime.utcnow(), LockEnum.INIT | LockEnum.SEND | LockEnum.QUEUE)) + op.execute("INSERT INTO lock (address, date_created, blockchain, flags) VALUES('{}', '{}', '::', {})".format(ZERO_ADDRESS_NORMAL, datetime.datetime.utcnow(), LockEnum.INIT | LockEnum.SEND | LockEnum.QUEUE)) def downgrade():