gitcoinco / gitcoinco/web

eth payment & zkSync checkout - lost funds when using metamask switched to BSC network

Open
#7,478 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
776
PR merge metrics
No merged PRs in 30d

Description

steps:
1. configure metamask to use BSC chain ( https://medium.com/@spartanprotocol/connecting-metamask-to-bsc-mainnet-23e434bc670f ), switch metamask to this chain, have some native balance in your wallet (BNB)
2. go to checkout, choose eth donation
3. choose zkSync checkout
4. step1 Sign in to zkSync via Gitcoin - no errors
5. step2 ERC20 token approvals - no errors
6. step3 Confirm donation transaction - nothing special in metamask, everything looks as usual

result - after step 6, tx is confirmed on BSC net, funds are successfully sent on zxSync address in BSC network
but of course not processed

proposal - to have some check and notification to prevent this (in general not to use any unsupported network)

added:
after this mistake - I didn't find a way to go through zkSync checkout using same wallet switched back to eth mainnet
after step1 sign in to zkSync - in zkSync popup window I see link to the same tx hash already existing on BSC network (and not existing on eth mainnet)
and nothing happens after confirm clicked - just processing, no metamask popup etc

https://user-images.githubusercontent.com/2428054/93691286-a4f50100-faeb-11ea-99d2-388041f15ed4.png

https://etherscan.io/tx/0x4576b2b24f9ed8ad0e3a045ae31c3c2e340eec10d53184f7dcf90c368d7b122f
https://bscscan.com/tx/0x4576b2b24f9ed8ad0e3a045ae31c3c2e340eec10d53184f7dcf90c368d7b122f

ubuntu 18.04 / chromium 85.0.4183.83 / metamask 8.0.8

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.