Skip to content

Commit 38d1e03

Browse files
author
Travis CI
committed
Autobuild N.598 [ci skip]
1 parent deaa422 commit 38d1e03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@
628628
{
629629
"Name": "NewUser",
630630
"Conditions": "ContractConditions(\"@1DeveloperCondition\")",
631-
"Value": "contract NewUser {\n data {\n NewPubkey string\n }\n conditions {\n $id = PubToID($NewPubkey)\n if $id == 0 {\n error \"Wrong pubkey\"\n }\n if DBFind(\"keys\").Columns(\"id\").WhereId($id).One(\"id\") != nil {\n error \"User already exists\"\n }\n }\n action {\n $pub = HexToPub($NewPubkey)\n $account = IdToAddress($id)\n $amount = Money(1000) * Money(1000000000000000000)\n DBInsert(\"keys\", {\"id\": $id, \"account\": $account, \"pub\": $pub, \"amount\": $amount, \"ecosystem\": 1})\n }\n}",
631+
"Value": "contract NewUser {\n data {\n NewPubkey string\n }\n conditions {\n $id = PubToID($NewPubkey)\n if $id == 0 {\n error LangRes(\"@1wrong_pub\", \"en\")\n }\n if DBFind(\"keys\").Columns(\"id\").WhereId($id).One(\"id\") != nil {\n error LangRes(\"@1template_user_exists\", \"en\")\n }\n }\n action {\n $pub = HexToPub($NewPubkey)\n $account = IdToAddress($id)\n $amount = Money(1000) * Money(1000000000000000000)\n DBInsert(\"keys\", {\"id\": $id, \"account\": $account, \"pub\": $pub, \"amount\": $amount, \"ecosystem\": 1})\n }\n}",
632632
"Type": "contracts"
633633
},
634634
{

0 commit comments

Comments
 (0)