【问题标题】:Algorand JS SDK - problems with get_obj_for_encodingAlgorand JS SDK - get_obj_for_encoding 的问题
【发布时间】:2022-08-17 21:18:17
【问题描述】:

我正在尝试使用algorand-js-sdk。将 SignedTransaction 传递给后端 API 时,该方法被剥离。我可以在这里做什么?

    标签: javascript algorand


    【解决方案1】:

    更新:解决了这个问题。

    我将get_obj_for_encoding 方法修改为独立函数。这样做时,我必须在需要的地方将数组对象转换回 Uint8Arrays 和 Buffers。如果有实现此目的的内置或更简单的方法,请发表评论。

    来源:https://github.com/algorand/js-algorand-sdk/blob/cfd5b88/src/transaction.ts#L534

    【讨论】:

      猜你喜欢
      • 2022-07-12
      • 1970-01-01
      • 1970-01-01
      • 2022-07-20
      • 2019-12-11
      • 1970-01-01
      • 2022-08-11
      • 2022-10-19
      • 2020-03-10
      相关资源
      最近更新 更多