Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`oasis paratime show`: Wrong Event amount

未关闭
#258 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
go
领域
blockchain, cli

调研方向

重新执行 oasis paratime show --paratime sapphire --network testnet 6933090 0 命令,并跟踪 Event 0 的账户转账是如何被解码和渲染的。将显示的金额与链接的 Sapphire explorer 交易进行比较;当两个转账事件都显示正确的金额和面额时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug paratime

Reported by @CedarMist :

oasis paratime show --paratime sapphire --network testnet  6933090 0

yields:

Network:        testnet
ParaTime:       sapphire
Round:          6933090
Version:        0
Namespace:      000000000000000000000000000000000000000000000000a6d1e3ebf60dff6c
Timestamp:      2024-06-26T16:17:04+02:00
Type:           1
Previous:       9394f74f0f5f1aa7e0d5919a13ed8c4234580102d97a483e1172aae8c73ea8c8
I/O root:       a160d6c354dc50f514334917f931a5104642cb74eaf3b1ee6ee33fbf7da7e276
State root:     91782bf2bdd03ed6322053b2f6c1fd912071e6d9fe538857a4052f0e8521534b
Messages (out): c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a
Messages (in):  c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a
Transactions:   2

=== Transaction 0 ===
Kind:      evm.ethereum.v0
Hash:      3f8602a0cf0859b3344d2ea21a3cf8760ffb8148c8f5fd7ab0a5b88280e8a984
Eth hash:  0x3a5601ed4b4236c1ec26f4fa85991315695fa068602e68b719594da7fda6ed77
Chain ID:  23295
Nonce:     1821516
Type:      0
To:        0xeDA395666E56dd9E2Ef3Bdc76eee373b738640DD
Value:     100000001719411420
Gas limit: 30000
Gas price: 100000000000
Data:
  (none)

=== Result of transaction 0 ===
Status: ok
Data:
  ""

=== Events emitted by transaction 0 ===
Events: 2

  --- Event 0 ---
  Module: accounts
  Code:   1
  Data:
    [
      {
        "Burn": null,
        "Mint": null,
        "Transfer": {
          "amount": {
            "Amount": {},
            "Denomination": ""
          },
          "from": "oasis1qq5rm2rhfykc6vw7a8e3287jr3wa6tpl4qv49gzh",
          "to": "oasis1qzxg9z7gufqg8f47salv3933xaq6rykusslsq4k7"
        }
      },
      {
        "Burn": null,
        "Mint": null,
        "Transfer": {
          "amount": {
            "Amount": {},
            "Denomination": ""
          },
          "from": "oasis1qq5rm2rhfykc6vw7a8e3287jr3wa6tpl4qv49gzh",
          "to": "oasis1qp3r8hgsnphajmfzfuaa8fhjag7e0yt35cjxq0u4"
        }
      }
    ]

  --- Event 1 ---
  Module: core
  Code:   1
  Data:
    [
      {
        "amount": 22143
      }
    ]

The amount fields in "Event 0" above are invalid. The correct ones should be https://explorer.oasis.io/testnet/sapphire/tx/0x3a5601ed4b4236c1ec26f4fa85991315695fa068602e68b719594da7fda6ed77

image

主要语言
Go
星标
80
派生
23
平均合并
9 小时 43 分钟
30 天内合并 PR
3

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

oasisprotocol/cli 的其他 Issue

查看 oasisprotocol/cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。