I am trying to test this liquidity smart contract code but if shows error. Liquidity is similar to ocaml, tezos's smart contract language.

I am trying to test this liquidity smart contract code but if shows error. Liquidity is similar to ocaml, tezos's smart contract language.

I have been trying to test the first entry point of this game which is play. But when it tries to compile it, there's some error showing. How do I proceed or is there something I am missing?

I have been trying to test the first entry point of this game which is play. But when it tries to compile it, there's some error showing. How do I proceed or is there something I am missing?

[%%version 0.4]

type game = { number : nat; bet : tez; player : key_hash; }

type storage = { game : game option; oracle_id : address; }

let%entry play (number : nat) storage = if number>100p then Current.failwith "number must be <=100"; if 2p.Current.amount()>Current.balance() then Current.failwith"less balance";

match storage.game with |some g -> failwith ("game has already started",g) |None -> let bet = Current.amount() in let storage = storage.game <- Some {number, bet, player} in (([]:operation list),storage)


blockchain bitcoin

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Adding Messages On The Bitcoin Blockchain - A How-To Guide

Can I write on a Bitcoin Blockchain? Can I drop down a message? Yes, Luca of course you can! You can leave a message on a Bitcoin blockchain using a particular op code, called OP_RETURN.

What Is The Difference Between Blockchain And Bitcoin?

Get hands on experinece on block chain live industry experts with real world example at Block chain online Training. Enroll for free demo

Public Fascination with Bitcoin Price is Slowing the Adoption of Bitcoin

Few people ask me about the social, political, and economic impact of cryptographically-secure, time-stamped distributed ledgers. Most people ask “should I buy bitcoin?” They seem interested in whether they can make money from its price going up.

Revolutionary Application of Blockchain Technology

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects

Five Blockchain Trends for You to Consider this Year

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects