Merge lima – 4.3.0 #747

Merged
zxq9 merged 15 commits from github/fork/radrow/master into master 2020-04-30 20:52:52 +09:00
Showing only changes of commit dc977f7354 - Show all commits

View File

@ -1022,8 +1022,8 @@ contract FundMe =
deadline : int,
goal : int }
function spend(args : spend_args) =
raw_spend(args.recipient, args.amount)
stateful function spend(args : spend_args) =
Chain.spend(args.recipient, args.amount)
entrypoint init(beneficiary, deadline, goal) : state =
{ contributions = {},
@ -1062,7 +1062,6 @@ contract FundMe =
require(state.total >= state.goal, "Project was not funded")
spend({recipient = state.beneficiary,
amount = Contract.balance })
put(state{ beneficiary = #0 })
stateful function withdraw_contributor() =
if(state.total >= state.goal)