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)


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Bitcoin and Blockchain Introduction Course

Learn Bitcoin and Blockchain — Quickly and Thoroughly — With this introductory course. Everything you need to get started using Bitcoin, blockchain, and distributed technology, without the fluff! Learn: currency, blockchain and distributed ledgers, peer-to-peer transfers, wallets, keys and addresses, hashing algorithms, binary and hex, difficulty, block speed, bitcoin mining, altcoins, and more!

Top 10 Best Blockchain Programming Language for Blockchain Programmer

We aim at equipping you with every necessary knowledge of the best programming languages for blockchain and you'll learn more 10 Best Blockchain Programming Language for Programmer: C++, Java, Python, Ruby, Solidity, Go, JavaScript...

Top Blockchain Application Development Company

Codezeros is a top **[Blockchain solution and service provider](https://www.codezeros.com/ "Blockchain solution and service provider")** company which reinvents business with Blockchain solutions. Our Blockchain development solutions fortify the...