From cf540a1a78a9cb762bb12e9c1db6bf08d28f8e78 Mon Sep 17 00:00:00 2001 From: Lesenechal Remi Date: Tue, 26 Nov 2019 12:14:42 +0100 Subject: [PATCH] multisigv2 default entry point --- src/test/contracts/multisig-v2.ligo | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/test/contracts/multisig-v2.ligo b/src/test/contracts/multisig-v2.ligo index f28d577f7..41fa2c8b6 100644 --- a/src/test/contracts/multisig-v2.ligo +++ b/src/test/contracts/multisig-v2.ligo @@ -21,12 +21,14 @@ end type message_t is (bytes -> list(operation)) type send_pt is message_t type withdraw_pt is message_t +type default_pt is unit type contract_return_t is (list(operation) * storage_t) type entry_point_t is | Send of send_pt | Withdraw of withdraw_pt +| Default of default_pt function send (const param : send_pt; const s : storage_t) : contract_return_t is block { @@ -86,8 +88,12 @@ function withdraw (const param : withdraw_pt; const s : storage_t) : contract_re } with ( (nil: list(operation)) , s) +function default (const p : default_pt; const s : storage_t) : contract_return_t is + ((nil: list(operation)) , s) + function main(const param : entry_point_t; const s : storage_t) : contract_return_t is case param of - | Send (p) -> send(p,s) + | Send (p) -> send(p,s) | Withdraw (p) -> withdraw(p,s) + | Default (p) -> default(p,s) end \ No newline at end of file