Problem with script


#1

Hello,
I have problem with my scripted asset. I have the following code:
{-# STDLIB_VERSION 3 #-}
{-# CONTENT_TYPE EXPRESSION #-}
{-# SCRIPT_TYPE ASSET #-}
#PUZZLE SUPERNOVA
#code version: 6.5

#Proudly made by DD eCoin Studio, www.ddecoin.eu
let expiration = 8552064400000 # Time
let price = 1000000000000 # 0.01 WAVES
match tx {
case e: ExchangeTransaction =>
let pair = e.buyOrder.assetPair
let tradedForWaves = ! isDefined(pair.amountAsset) ||
! isDefined(pair.priceAsset)
tradedForWaves && e.price > price
case b: BurnTransaction =>
b.timestamp > expiration
case _: TransferTransaction | MassTransferTransaction => true
case _ => false
}
I have successfully deployed it on the Testnet, but it gives an error, when I am trying to deploy it on the Mainnet. Please help me, thanks!


#2

try STDLIB_VERSION 2 on mainnet