Cointime

Download App
iOS & Android

zkSync Assists Gemholic with Smart Contract Issue, Ensures Safe Funds and Unfreezes Contract

Cointime Official

zkSync has given support to Gemholic, a multi-product platform that faced an issue with their smart contract on zkSync Era. 

Gemholic deployed their token contract and conducted a pre-sale launch on zkSync Era, but faced a problem due to the usage of the .transfer() function. The contracts were deployed on Era mainnet without prior testing on a testnet or local node, which could have identified the issue earlier.

"Funds are safe. We found an elegant solution how to unfreeze the contract.", zkSync stated in a tweet. The team said a solution to unfreeze the contract has been found, which will entail minimal changes to gas metering in the protocol but will allow for complete fund recovery. 

Smart contracts using transfer() or send() rely heavily on gas costs, as these functions forward a hardcoded amount of 2300 gas. However, this isn't guaranteed to work on Ethereum, since the fallback() function can consume more than 2300 gas, and opcode gas pricing may change in future Ethereum versions.

zkSync also highlights that zkSync Era is not EVM equivalent. zkSync Era's deliberate design choice to diverge from EVM equivalence results in dynamic gas metering, allowing some transactions to be 10x to 1000x cheaper than on other EVM rollups.

Read full thread:

@GemholicECO is a multi-product platform that recently deployed their token contract and performed a pre-sale launch on zkSync Era. After deployment they encountered an issue with their contract due to the usage of the .transfer() function.

Unfortunately, the contracts were deployed on Era mainnet without having been tried on the testnet or local node, which would have immediately 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.

This is not guaranteed to work on Ethereum!

1) fallback() function can consume more than 2300 gas,

2) opcode gas pricing can change in future version of Ethereum, and your contract will break.

Developers have been warned about this 3 years ago:  Stop Using Solidity's transfer() Now

@zksync Era is not EVM equivalent. This is a deliberate design choice. Era has a diverging, dynamic gas metering, which allows some transaction types to be 10x to 1000x cheaper than on any other EVM rollup! 

At the current gas pricing levels of Era mainnet, ETH transfers will cost more than 2300 gas. Which is why any .transfer() call without explicit gas stipend will currently fail.

It was clear to us that this problem could arise, so we added a warning about .transfer() directly to the compiler:

We took one more extra step and checked the source code of dozens of popular crypto projects. We didn't find a single one not following the 3 year old warning of not using .transfer(). We concluded that the dev community has since long closed this issue.

However, the GemholicECO situation has demonstrated that this is not the case. We took their problem extremely seriously. We will always do our best to provide support and guidance to developers and communities building on @zksync.

In this case, we identified an elegant solution which can solve a broader class of gas-related problems. It will require minimal changes in the gas metering of the protocol, but will allow for full recovery of the funds. We will publish more details on it tomorrow.

zkEVMs are complex systems that are in the process of maturing. Even though zkSync Era is still in Alpha, we’ve already got a thriving ecosystem.

We’ve seen a tremendous spike in activity, the most any scaling solution has ever undergone in such a short period of time; it’s been two weeks since our launch and we've risen to the 4th highest TVL and 3rd highest usage of all L2s.

With this comes great responsibility and inevitably the occasional friction and today was one of these instances. When there are problems our team will continue to be on alert and be relentless in resolving issues.

Comments

All Comments

Recommended for you

  • Lightspeed Plans to Raise $600 Million for Secondary Fund to Invest in OpenAI and Anthropic

    On August 12, Bloomberg reported that Lightspeed Venture Partners is seeking to raise approximately $600 million through secondary transactions to extend its investment exposure to OpenAI and other artificial intelligence companies, as well as to increase its investment in AI model company Anthropic. According to insiders, this fundraising effort is internally codenamed 'Project Mercury' and involves multiple secondary funds under Lightspeed, including the Select V Fund, Opportunity II Fund, and certain assets in a separately managed account. Lightspeed aims to provide liquidity to investors through secondary market transactions while maintaining long-term holdings in leading companies in the AI sector.

  • SK Hynix Shares Rise Over 8%

    On August 12, SK Hynix's stock price increased by 8.6%, reaching $153.95 per share, with a total market capitalization of $1.12 trillion.

  • U.S. Stock Market's Storage Sector Opens Strong; SK Hynix and Micron Both Rise Over 7%

    On August 12, the Philadelphia Semiconductor Index rose by 3.3%. The U.S. stock market's storage sector opened strong, with Micron Technology increasing by 7.03%, SK Hynix rising by 7.72%, SanDisk up by 7.16%, Western Digital gaining 6.63%, Seagate Technology up by 7.60%, and Kioxia ADR rising by 7.82%.

  • Strong Demand for AI Optical Communication Drives Lumentum Shares Up Over 10%

    On August 12, Lumentum's shares rose over 10% following strong quarterly results, leading the optical communication sector. Nokia's shares increased by over 9%, while Ciena, Fabrinet, and Tower Semiconductor saw gains of over 7%. Coherent, Credo Technology, and Corning also rose by more than 5%. The news highlights robust demand for AI optical communication, with Lumentum reporting a strong performance for its fourth fiscal quarter. During this period, net revenue more than doubled year-on-year to $1.01 billion, with adjusted earnings per share soaring 267% to $3.23 and gross margin exceeding 50%. The company's guidance for the first fiscal quarter also surpassed expectations. CEO Michael Hurlston confirmed during the earnings call that production for its major CPO customers is 'on track,' with demand signals showing an increase since the last update. The company reiterated its expectation for demand for high-power laser chips to ramp up in the second half of 2027.

  • Cloud Computing Concept Soars, CoreWeave Rises Over 23% as Earnings Validate Surge in Computing Demand

    On August 12, the cloud computing sector saw significant gains, with CoreWeave rising over 23%, NEBIUS up over 17%, IREN increasing over 8%, and Hut 8 climbing over 6%. Additionally, Oracle and Riot Platforms both rose over 3%. In terms of news, cloud computing giants' earnings have confirmed a surge in computing demand. CoreWeave reported Q2 revenue of $2.575 billion, a 112% year-over-year increase, exceeding expectations; its core revenue backlog reached approximately $104 billion. Furthermore, NEBIUS reported a 454% year-over-year increase in Q2 revenue to $582 million, with AI cloud business revenue skyrocketing by 514%, and it has raised its guidance for contracted power capacity for 2026.

  • Hyperliquid Seeks to Enter the U.S. Market

    On August 12, news emerged that Hyperliquid is looking to explore pathways to enter the U.S. market for its perpetual contracts. Currently, the platform is not open to U.S. users. Previously, the Hyperliquid Policy Center, funded by Hyper Foundation, has conducted policy research and initiatives in Washington to advocate for the establishment of a regulated access framework for on-chain perpetual contracts and decentralized market infrastructure in the U.S. (The Information)

  • Tencent President Liu Chiping Discusses Increased AI Capital Expenditure: Multiple Applications Performing Well with Clear Upside Potential

    On August 12, during Tencent's Q2 2026 earnings conference call, President Liu Chiping addressed the issue of increased capital expenditure in the second quarter. He stated that Tencent is indeed making significant investments in computing power and has already seen a clear potential for returns. Several new applications are performing well. Additionally, the computing power used for cloud leasing services is expected to bring considerable revenue growth, enhancing the return on capital expenditure. Regarding some previously placed computing power orders, if sold, they could yield profits exceeding 30% compared to the purchase price from a few months ago.

  • U.S. Stocks Open: Nasdaq Rises 0.9%, Optical Communication and Memory Chip Stocks Surge

    The Dow Jones increased by 0.3%, while the S&P 500 rose by 0.5%. CoreWeave surged approximately 21% after its Q2 revenue doubled, exceeding expectations, with backlog orders reaching $104 billion. AMD saw a rise of about 9% due to sustained demand for AI infrastructure, with last quarter's sales nearly doubling and guidance for this quarter and the new fiscal year significantly surpassing expectations. Optical communication stocks broadly increased, with Lumentum rising around 11% as strong AI optical communication demand led to a doubling of its revenue last quarter, and its guidance for this quarter also exceeded expectations, despite a debt restructuring resulting in a massive loss of over $7 billion. Marvell Technology climbed about 5%, Coherent rose about 7%, Credo increased around 7%, and Corning gained about 5%. Nebius saw an increase of approximately 15% after its Q2 revenue exceeded expectations. Memory chip stocks also broadly rose, with SK Hynix increasing by about 6%. Data showed that the U.S. core inflation in July performed moderately, which may ease pressure on the Federal Reserve to raise interest rates. The core CPI in July increased by 2.5% year-on-year, matching the lowest growth rate since March 2021 and in line with expectations, compared to a previous increase of 2.6%.

  • Spot Gold Breaks $4,440/Ounce, Reaching New High Since June 5

    Spot gold has surpassed $4,440 per ounce, marking a new high since June 5, with an intraday increase of 1.66%.

  • Nasdaq 100 Futures Rise by 1%

    Nasdaq 100 futures rose by 1%; S&P 500 futures increased by 0.5%.