<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Developers Forum for XinFin XDC Network: Gabriel Souza</title>
    <description>The latest articles on Developers Forum for XinFin XDC Network by Gabriel Souza (@nogcrypto).</description>
    <link>https://www.xdc.dev/nogcrypto</link>
    <image>
      <url>https://www.xdc.dev/images/ZLiLCoVoibeH5nVgah2_nYSFtDTCoa1WbLVdW_xz5v0/rs:fill:90:90/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL3VzZXIvcHJv/ZmlsZV9pbWFnZS8z/Njk3LzBlNDBmNjQ4/LWIxOTItNGQ5ZS05/OTYyLWJiYjcwOWM0/ZWFkYy5wbmc</url>
      <title>Developers Forum for XinFin XDC Network: Gabriel Souza</title>
      <link>https://www.xdc.dev/nogcrypto</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.xdc.dev/feed/nogcrypto"/>
    <language>en</language>
    <item>
      <title>Gas Fee Issue with ERC721 Contract Creation on XDC Network</title>
      <dc:creator>Gabriel Souza</dc:creator>
      <pubDate>Mon, 09 Dec 2024 20:26:09 +0000</pubDate>
      <link>https://www.xdc.dev/nogcrypto/gas-fee-issue-with-erc721-contract-creation-on-xdc-network-1cbn</link>
      <guid>https://www.xdc.dev/nogcrypto/gas-fee-issue-with-erc721-contract-creation-on-xdc-network-1cbn</guid>
      <description>&lt;p&gt;&lt;strong&gt;Environment:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Network: XDC Apothem (Testnet)&lt;/li&gt;
&lt;li&gt;Contract Type: ERC721&lt;/li&gt;
&lt;li&gt;Deployment Method: Proxy pattern for contract creation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Issue Description&lt;/strong&gt;&lt;br&gt;
We're encountering a gas fee error when attempting to create ERC721 contracts through our proxy system. The error occurs specifically during the createCollection function execution.&lt;br&gt;
Current Behavior&lt;/p&gt;

&lt;p&gt;ERC20 contract creation works successfully&lt;br&gt;
ERC721 contract creation fails with the following error:&lt;br&gt;
&lt;code&gt;Failed to send transaction: failed to send transaction: tx fee (7.62 ether) exceeds the configured cap (1 NB ether)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical Details&lt;/strong&gt;&lt;br&gt;
The error occurs in the contract method handler, suggesting that the gas estimation for ERC721 contract creation is significantly higher than expected. This appears to be specific to ERC721 implementations, as ERC20 deployments work without issues.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Steps to Reproduce&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Deploy proxy contract&lt;/li&gt;
&lt;li&gt;Call createCollection function with parameters for ERC721 contract creation&lt;/li&gt;
&lt;li&gt;Transaction fails at execution with gas fee error&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;What We've Tried&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Verified contract compilation settings&lt;/li&gt;
&lt;li&gt;Confirmed proxy contract implementation&lt;/li&gt;
&lt;li&gt;Tested successful ERC20 deployments through the same system&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Any insights or recommendations from the community would be greatly appreciated. We're particularly interested in hearing from others who have successfully implemented ERC721 contract creation through proxy patterns on XDC.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note: This is being tested on the Apothem testnet as part of our integration process.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>xdc</category>
      <category>gaserror</category>
      <category>erc721</category>
    </item>
  </channel>
</rss>
