【问题标题】:What does the parameter "i" represent in the callable functions in Ride4dApps?Ride4dApps 中的可调用函数中的参数“i”代表什么?
【发布时间】:2019-08-19 01:05:45
【问题描述】:

我对 Ride4dApps 完全陌生,在尝试编写可调用函数时,我不明白参数 i 在这里代表什么 @Callable(i)?

【问题讨论】:

    标签: blockchain smartcontracts wavesplatform ride


    【解决方案1】:

    您需要使用@callable(i) 才能访问被调用函数的数据。

    参数i是Invocation类型,基本上Invocation是一个数据结构:

    caller: Address.
    payment: Payment|Un, where Payment consist of amount: Long and assetId: ByteVector | Unit.
    

    【讨论】:

      猜你喜欢
      • 2020-07-20
      • 2012-04-24
      • 2019-02-25
      • 2019-11-17
      • 1970-01-01
      • 2012-08-05
      • 1970-01-01
      • 1970-01-01
      • 2011-10-12
      相关资源
      最近更新 更多