Alpha: fix the doulble roll bug
This commit is contained in:
parent
89f73cceb9
commit
c64698be09
@ -117,10 +117,10 @@ let unlink c contract balance =
|
|||||||
Storage.Contract.Delegate.get_option c contract >>=? function
|
Storage.Contract.Delegate.get_option c contract >>=? function
|
||||||
| None -> return c
|
| None -> return c
|
||||||
| Some delegate ->
|
| Some delegate ->
|
||||||
|
Roll_storage.Delegate.remove_amount c delegate balance >>=? fun c ->
|
||||||
match Contract_repr.is_originated contract with
|
match Contract_repr.is_originated contract with
|
||||||
| None -> return c
|
| None -> return c
|
||||||
| Some h ->
|
| Some h ->
|
||||||
Roll_storage.Delegate.remove_amount c delegate balance >>=? fun c ->
|
|
||||||
Storage.Contract.Delegated.del
|
Storage.Contract.Delegated.del
|
||||||
(c, Contract_repr.implicit_contract delegate) h >>= fun c ->
|
(c, Contract_repr.implicit_contract delegate) h >>= fun c ->
|
||||||
return c
|
return c
|
||||||
|
Loading…
Reference in New Issue
Block a user