crypto-org-chain / crypto-org-chain/cronos
Problem: internal EVM call don't fail if the method is not implemented
- Dominant language
- Go
- Stars
- 336
- Forks
- 299
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 4
Description
which causes a serious issue in token mapping, if the mapped contract lacks the `mint_by_cronos_module` method, then when converting tokens, the native tokens will disappear, and there are no equivalent crc20 tokens minted.
we better check the `Transfer` event in the returned receipt logs.
Contributor guide
Research direction
Trace the internal EVM call used during token mapping and inspect the returned receipt logs, focusing on the Transfer event. Done means a mapping with no mint_by_cronos_module method does not silently consume native tokens and only treats the conversion as successful when the expected CRC20 mint transfer is present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100