oasisprotocol / oasisprotocol/cli
`oasis paratime show`: Wrong Event amount
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 80
- Forks
- 23
- Avg merge
- 9h 43m
- Merged PRs (30d)
- 3
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the oasis paratime show --paratime sapphire --network testnet 6933090 0 command and trace how Event 0 account transfers are decoded and rendered. Compare the displayed amounts with the linked Sapphire explorer transaction; done means both transfer events show the correct amount and denomination.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- blockchain, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100