Want to know how to create a smart contract? In this second video we’ll show you how you to setup a smart account on Waves Platform. Thanks a lot Woutje from Bearwaves for supplying the code used in this example.
Script code
#Smart account script which enables transactions when
#the blockchain reaches a certain height
let UnblockHeight = 588775;
match (tx) {
case e:TransferTransaction =>
if(height < UnblockHeight)
then
#Not allowed to send
false
else
#Allowed to send
true
#All other tx types not allowed
case _ => false
}