diff --git a/artifacts/hello-tacos.default_storage.tz b/artifacts/hello-tacos.default_storage.tz new file mode 100644 index 0000000..8d637a7 --- /dev/null +++ b/artifacts/hello-tacos.default_storage.tz @@ -0,0 +1,2 @@ +42 + diff --git a/artifacts/hello-tacos.storage.store420tacos.tz b/artifacts/hello-tacos.storage.store420tacos.tz new file mode 100644 index 0000000..b731a85 --- /dev/null +++ b/artifacts/hello-tacos.storage.store420tacos.tz @@ -0,0 +1,2 @@ +420 + diff --git a/artifacts/hello-tacos.tz b/artifacts/hello-tacos.tz new file mode 100644 index 0000000..d1a9541 --- /dev/null +++ b/artifacts/hello-tacos.tz @@ -0,0 +1,10 @@ +{ parameter nat ; + storage nat ; + code { UNPAIR ; + DUP 2 ; + DUP 2 ; + COMPARE ; + GT ; + IF { DROP 2 ; PUSH string "NOT_ENOUGH_TACOS" ; FAILWITH } + { SWAP ; SUB ; ABS ; NIL operation ; PAIR } } } + diff --git a/package.json b/package.json index 230ab5a..5b4a0ce 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "setup:app": "cd ./app && npm install", "start:app": "cd app && npm run start", "start:sandbox": "taq start sandbox", - "start": "npm run compile:contract && npm run start:sandbox && npm run start:app", + "start": "npm run compile:contract && npm run start:sandbox && npm run originate && npm run start:app", "compile:contract": "taq compile --plugin ligo hello-tacos.mligo", "df-docker": "docker system df", "rm-docker": "docker rm -vf $(docker ps -aq) 2>&1 > /dev/null",