Alpha: don't burn origination_burn twice...

This commit is contained in:
Grégoire Henry 2018-03-15 14:43:39 +01:00 committed by Benjamin Canou
parent a41d553162
commit abe769c393

View File

@ -189,10 +189,9 @@ let rec interp
Prim (0, K_code, [ Micheline.root code ], None) ], None)) in
let storage = Micheline.strip_locations (unparse_data storage_type init) in
Contract.spend_from_script ctxt source credit >>=? fun ctxt ->
Lwt.return Tez.(credit -? Constants.origination_burn) >>=? fun balance ->
Contract.originate ctxt
origination
~manager ~delegate ~balance
~manager ~delegate ~balance:credit
~script:({ code ; storage }, (dummy_code_fee, dummy_storage_fee))
~spendable ~delegatable
>>=? fun (ctxt, contract, origination) ->