-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: added code_with_lambda_rec file and test against rpc forger
re #2074
- Loading branch information
1 parent
442aae2
commit ba7c468
Showing
2 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// https://gitlab.com/tezos/tezos/-/blob/master/src/proto_015_PtLimaPt/lib_protocol/test/regression/contracts/rec_id_unit.tz | ||
export const lambdaRecCode = [ | ||
{ prim: 'parameter', args: [ { prim: 'unit' } ] }, | ||
{ prim: 'storage', args: [ { prim: 'unit' } ] }, | ||
{ | ||
prim: 'code', | ||
args: [ | ||
[ | ||
{ prim: 'CAR' }, | ||
{ prim: 'LAMBDA_REC', args: [ | ||
{ prim: 'unit' }, | ||
{ prim: 'unit' }, | ||
[ { prim: 'DIP', args: [ [ { prim: 'DROP' } ] ] } ] | ||
] }, | ||
{ prim: 'SWAP' }, | ||
{ prim: 'EXEC' }, | ||
{ prim: 'NIL', args: [ { prim: 'operation' } ] }, | ||
{ prim: 'PAIR' } | ||
] | ||
] | ||
} | ||
] |