dev@locazia: add deploy platform option
This commit is contained in:
parent
4be952571f
commit
db2b6eff6f
|
|
@ -1,14 +1,15 @@
|
|||
from tonsdk.boc import Cell
|
||||
from tonsdk.utils import Address
|
||||
import os
|
||||
|
||||
from app.core._blockchain.ton.contracts.blank import Blank
|
||||
from app.core._blockchain.ton.contracts.cop_nft import COP_NFT
|
||||
from app.core._blockchain.ton.contracts.platform import Platform
|
||||
from app.core._config import TESTNET, MY_PLATFORM_CONTRACT, PROJECT_HOST
|
||||
from app.core._config import MY_PLATFORM_CONTRACT, PROJECT_HOST
|
||||
from app.core._secrets import service_wallet
|
||||
|
||||
kwargs = {}
|
||||
if TESTNET is False:
|
||||
if int(os.getenv('INIT_DEPLOY_PLATFORM_CONTRACT', 0)) == 0:
|
||||
kwargs['address'] = Address(MY_PLATFORM_CONTRACT)
|
||||
|
||||
platform = Platform(
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ async def get_sw_seqno():
|
|||
if sw_seqno_result.get('exit_code', -1) != 0:
|
||||
sw_seqno_value = 0
|
||||
else:
|
||||
sw_seqno_value = int(sw_seqno_result.get('stack', [['num', '0x0']])[0][1].replace('0x', ''), 16)
|
||||
sw_seqno_value = int(sw_seqno_result.get('stack', [['num', '0x0']])[0][1], 16)
|
||||
|
||||
return sw_seqno_value
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue