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

fix: hardcode erc20 asset strings to align with the data in foreign coin store #3273

Merged
merged 7 commits into from
Dec 10, 2024
Prev Previous commit
Next Next commit
Update zetaclient/chains/evm/observer/v2_inbound.go
added Github issue link around the hotfix

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
ws4charlie and lumtis authored Dec 10, 2024
commit 2351835adb398f437d25925f681b8c895d086652
3 changes: 3 additions & 0 deletions zetaclient/chains/evm/observer/v2_inbound.go
Original file line number Diff line number Diff line change
@@ -182,6 +182,9 @@ func (ob *Observer) newDepositInboundVote(event *gatewayevm.GatewayEVMDeposited)
}

// convert erc20Address to asset in foreign coin store to avoid checksum mismatch
ws4charlie marked this conversation as resolved.
Show resolved Hide resolved
// convert erc20Address to asset in foreign coin store to avoid checksum mismatch
// TODO: remove once the checksum conversion is fixed in the protocol
// https://github.com/zeta-chain/node/issues/3274
asset := ERC20AddressToForeignCoinAsset(ob.Chain().ChainId, event.Asset)
if asset != event.Asset.Hex() {
ob.Logger().