News News Report Technology
April 07, 2023

Funds from GemholicECO’s 921ETH Token Sale Stuck in zkSync’s Smart Contract Due to Using Transfer Function

In Brief

GemholicECO used the transfer function when deploying their token contract on zkSync Era.

The transfer function works on Ethereum and other EVM chains, but not on zkSync.

zkSync has given the community an update to clarify the issue.

GemholicECO, a multi-product platform, has raised 921 ETH, worth approximately $1.7 million, in a token sale. However, the funds have been stuck in the smart contract due to an issue with the usage of the .transfer() function, which works on Ethereum and other EVM chains, but not on zkSync.

zkSync Era is a Layer-2 protocol that scales Ethereum with Zero Knowledge technology. The Alpha version of the protocol opened on the mainnet on Mar 24.

To clarify the issue, zkSync tweeted an update on Thursday, giving its community context. According to zkSync, GemholicECO deployed its contract on the mainnet without trying it on the testnet or local node, which would have caught the problem. 

“Any smart contract that uses transfer() or send() is taking a hard dependency on gas costs, because this functions forward a hardcoded amount of 2300 gas,” zkSync explained. While the function uses a hardcoded gas amount, gas costs can change, causing the smart contract to break.

Developers were warned about using the transfer function three years ago, but it seems that GemholicECO did not heed the advice. Anticipating that the problem would arise, zkSync added a warning about using the transfer function directly into the compiler.

Developers of the protocol made a deliberate design choice of making zkSync not EVM equivalent. zkSync claims that Its dynamic gas metering allows some transactions to be up to 1,000 times cheaper than on any other EVM rollup.

Furthermore, zkSync previously checked the source code of dozens of popular crypto projects and didn’t find a single one to be not following the three-year-old warning of not using .transfer(), therefore leading it to conclude that the developer community had resolved this issue.

To prevent this issue from resurfacing in the future, zkSync has identified a solution that can solve a broader class of gas-related problems, unfreeze the smart contract and fully recover GemholicECO’s funds. The protocol will publish more details soon.

Read more:

Disclaimer

In line with the Trust Project guidelines, please note that the information provided on this page is not intended to be and should not be interpreted as legal, tax, investment, financial, or any other form of advice. It is important to only invest what you can afford to lose and to seek independent financial advice if you have any doubts. For further information, we suggest referring to the terms and conditions as well as the help and support pages provided by the issuer or advertiser. MetaversePost is committed to accurate, unbiased reporting, but market conditions are subject to change without notice.

About The Author

Cindy is a journalist at Metaverse Post, covering topics related to web3, NFT, metaverse and AI, with a focus on interviews with Web3 industry players. She has spoken to over 30 C-level execs and counting, bringing their valuable insights to readers. Originally from Singapore, Cindy is now based in Tbilisi, Georgia. She holds a Bachelor's degree in Communications & Media Studies from the University of South Australia and has a decade of experience in journalism and writing. Get in touch with her via cindy@mpost.io with press pitches, announcements and interview opportunities.

More articles
Cindy Tan
Cindy Tan

Cindy is a journalist at Metaverse Post, covering topics related to web3, NFT, metaverse and AI, with a focus on interviews with Web3 industry players. She has spoken to over 30 C-level execs and counting, bringing their valuable insights to readers. Originally from Singapore, Cindy is now based in Tbilisi, Georgia. She holds a Bachelor's degree in Communications & Media Studies from the University of South Australia and has a decade of experience in journalism and writing. Get in touch with her via cindy@mpost.io with press pitches, announcements and interview opportunities.

Hot Stories

Top Investment Projects of the Week 25-29.03

by Viktoriia Palchik
March 29, 2024
Join Our Newsletter.
Latest News

Top Investment Projects of the Week 25-29.03

by Viktoriia Palchik
March 29, 2024

Supply and Demand Zones

Cryptocurrency, like any other currency, is a financial instrument based on the fundamental economic principles of supply ...

Know More

Top 10 Crypto Wallets in 2024

With the current fast-growing crypto market, the significance of reliable and secure wallet solutions cannot be emphasized ...

Know More
Join Our Innovative Tech Community
Read More
Read more
Modular Blockchain Sophon Raises $10M Funding from Paper Ventures and Maven11 Amid Veil of Mystery
Business News Report
Modular Blockchain Sophon Raises $10M Funding from Paper Ventures and Maven11 Amid Veil of Mystery
March 29, 2024
Arbitrum Foundation Announces Third Phase Of Grants Program, Opens Applications From April 15th
News Report Technology
Arbitrum Foundation Announces Third Phase Of Grants Program, Opens Applications From April 15th
March 29, 2024
Top Investment Projects of the Week 25-29.03
Digest Technology
Top Investment Projects of the Week 25-29.03
March 29, 2024
Vitalik Buterin Advocates For Memecoins’ Potential In Crypto Sector, Favors ‘Good Memecoins’
News Report Technology
Vitalik Buterin Advocates For Memecoins’ Potential In Crypto Sector, Favors ‘Good Memecoins’
March 29, 2024