Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oasis paratime show: Wrong Event amount #258

Open
matevz opened this issue Jun 26, 2024 · 1 comment
Open

oasis paratime show: Wrong Event amount #258

matevz opened this issue Jun 26, 2024 · 1 comment
Labels
bug Something isn't working paratime ParaTime (runtime) related CLI issues

Comments

@matevz
Copy link
Member

matevz commented Jun 26, 2024

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

@matevz matevz added bug Something isn't working paratime ParaTime (runtime) related CLI issues labels Jun 26, 2024
@kostko
Copy link
Member

kostko commented Jun 26, 2024

The reason is that the denomination field doesn't have a custom serializer defined so a default is used which doesn't know how to show quantities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working paratime ParaTime (runtime) related CLI issues
Projects
None yet
Development

No branches or pull requests

2 participants