ligo/src/contracts/big_map.ligo

18 lines
530 B
Plaintext
Raw Normal View History

2019-09-03 20:33:30 +04:00
// type storage_ is big_map(int, int) * unit
type storage_ is big_map(int, int)
// function main(const p : unit; const s : storage_) : list(operation) * storage_ is
// block { skip }
// with ((nil : list(operation)), s)
function main(const p : unit; const s : storage_) : list(operation) * storage_ is
2019-09-03 20:33:30 +04:00
// var r : big_map(int, int) := s.0 ;
var r : big_map(int,int) := s ;
var toto : option (int) := Some(0);
block {
// r[23] := 2;
toto := r[23];
s := r;
// skip
}
with ((nil: list(operation)), s)