naively connects big_map to the transpiler
This commit is contained in:
parent
efc4cdb19a
commit
4fec6f1624
5
src/contracts/big_map.ligo
Normal file
5
src/contracts/big_map.ligo
Normal file
@ -0,0 +1,5 @@
|
||||
type storage_ is big_map(int, int) * unit
|
||||
|
||||
function main(const p : unit; const s : storage_) : list(operation) * storage_ is
|
||||
block { skip }
|
||||
with ((nil : list(operation)), s)
|
@ -113,6 +113,9 @@ let rec translate_type (t:AST.type_value) : type_value result =
|
||||
| T_constant ("map", [key;value]) ->
|
||||
let%bind kv' = bind_map_pair translate_type (key, value) in
|
||||
ok (T_map kv')
|
||||
| T_constant ("big_map", [key;value] ) ->
|
||||
let%bind kv' = bind_map_pair translate_type (key, value) in
|
||||
ok (T_map kv')
|
||||
| T_constant ("list", [t]) ->
|
||||
let%bind t' = translate_type t in
|
||||
ok (T_list t')
|
||||
|
Loading…
Reference in New Issue
Block a user