aeternity sophia contarct call value code example
Example: aeternity sophia contarct call value
// 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)