📜  aeternity sophia contarct call value - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:35.849000             🧑  作者: Mango

代码示例1
// when calling remote contracts, you can use 2 named arguments: gas and value.
// funds are taken from the contract in this example:

  entrypoint voteTwice(v : VotingContract, fee : int, yourParam : string) =
    v.vote(value = fee, yourParam) 
    v.vote(gas = Call.gas_left(), yourParam)