flintrocks / flint

The Flint Programming Language for Smart Contracts
MIT License
2 stars 0 forks source link

External call hyper-parameter checks #100

Closed Aurel300 closed 5 years ago

Aurel300 commented 5 years ago

(From #72)

External calls may optionally have hyper-parameters specified.

call! ext.someFunc() // no hyper-parameters
call(value: Wei(100))! ext.somePayableFunc() // value hyper-parameter
call(gas: 200)! ext.someFunc() // gas hyper-parameter
call(value: Wei(100), gas: 200)! ext.somePayableFunc() // both

(The hyper-parameters may be specified for all call modes, i.e. default call, forced call!, value-returning call?.)