ledger icon indicating copy to clipboard operation
ledger copied to clipboard

Supporting variable type for asset and amount

Open ciricc opened this issue 2 years ago • 0 comments

Now numscript supports only monetary type for dynamic assets. But in some ways might need to use asset and amount independet. Like this, in one transaction.

vars (
  asset $asset
  number $amount
)

send [$asset $amount] (
  source = @world
  destination = @users:001
)

send [$asset *] (
  source = @users:001
  destination = @platform:profit
)

ciricc avatar Apr 23 '22 16:04 ciricc