[英]What does the first three lines in Ride4dApps mean?
I start writhing my first dApp on RIDE language and I noticed that in smart account these 3 lines of code 我开始用RIDE语言编写我的第一个dApp,我注意到在智能帐户中,这3行代码
{-# STDLIB_VERSION 2 #-}
{-# CONTENT_TYPE EXPRESSION #-}
{-# SCRIPT_TYPE ACCOUNT #-}
are different in ride4dapps code example in the IDE IDE中的ride4dapps代码示例不同
{-# STDLIB_VERSION 3 #-}
{-# CONTENT_TYPE DAPP #-}
{-# SCRIPT_TYPE ACCOUNT #-}
what are these 3 lines for? 这3条线是做什么用的?
this line {-# STDLIB_VERSION 2 #-}
stands for the standard library version(the latest version is STDLIB_VERSION 3) which is important to include ride4dapps standard functionality(built-in functions) and the Postfix notation. 此行
{-# STDLIB_VERSION 2 #-}
代表标准库版本(最新版本为STDLIB_VERSION 3),这对于包含ride4dapps标准功能(内置函数)和Postfix表示法非常重要。
this line {-# CONTENT_TYPE EXPRESSION #-}
represents the type of a contract which is 此行
{-# CONTENT_TYPE EXPRESSION #-}
代表合同的类型,即
The last line {-# SCRIPT_TYPE ACCOUNT #-}
represents the script type, which is: 最后一行
{-# SCRIPT_TYPE ACCOUNT #-}
表示脚本类型,即:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.