crypto-org-chain / crypto-org-chain/cronos

Problem: internal EVM call don't fail if the method is not implemented

Open
#318 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.