<?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: DZariusz</title>
    <description>The latest articles on Developers Forum for XinFin XDC Network by DZariusz (@dzariusz).</description>
    <link>https://www.xdc.dev/dzariusz</link>
    <image>
      <url>https://www.xdc.dev/images/vbS_WVqN9ukQAMtmOUYFhTT-qgWNHv_bqzDj7zfZxCI/rs:fill:90:90/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL3VzZXIvcHJv/ZmlsZV9pbWFnZS8y/MzgxL2VlMGUzY2Q3/LTU3MzAtNGY4ZS1h/ZDNkLTYwZWE4NGNk/MjBkMC5qcGVn</url>
      <title>Developers Forum for XinFin XDC Network: DZariusz</title>
      <link>https://www.xdc.dev/dzariusz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.xdc.dev/feed/dzariusz"/>
    <language>en</language>
    <item>
      <title>[Solved] 404 when try to use read contract on apothem BlockScan</title>
      <dc:creator>DZariusz</dc:creator>
      <pubDate>Tue, 09 Jan 2024 09:49:59 +0000</pubDate>
      <link>https://www.xdc.dev/dzariusz/404-when-try-to-use-read-contract-on-apothem-blockscan-1ih2</link>
      <guid>https://www.xdc.dev/dzariusz/404-when-try-to-use-read-contract-on-apothem-blockscan-1ih2</guid>
      <description>&lt;p&gt;There is verified contract &lt;a href="https://explorer.apothem.network/address/0x92010E763d476A732021191562134c488ca92a1F"&gt;https://explorer.apothem.network/address/0x92010E763d476A732021191562134c488ca92a1F&lt;/a&gt; and when you try to go to &lt;em&gt;Read Contract&lt;/em&gt; or &lt;em&gt;Write Contract&lt;/em&gt; you get 404.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>[WIP] Hardhat deployment issue on XDC Apothem testnet</title>
      <dc:creator>DZariusz</dc:creator>
      <pubDate>Wed, 13 Dec 2023 17:06:17 +0000</pubDate>
      <link>https://www.xdc.dev/dzariusz/hardhat-deployment-issue-on-xdc-apothem-testnet-5dlg</link>
      <guid>https://www.xdc.dev/dzariusz/hardhat-deployment-issue-on-xdc-apothem-testnet-5dlg</guid>
      <description>&lt;p&gt;When I setup hardhat like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    xdc_sandbox: {
      url: 'https://rpc.apothem.network',
      accounts: [***],
      chainId: 51,
      gasPrice: 'auto'
    },
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I got setup from &lt;a href="https://docs.xdc.community/get-details/networks/apothem"&gt;https://docs.xdc.community/get-details/networks/apothem&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and when I try to deploy &lt;code&gt;hardhat deploy --network xdc_sandbox&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I'm getting error about &lt;code&gt;insufficient funds for intrinsic transaction cost&lt;/code&gt;. &lt;br&gt;
However, when I check wallet balance on &lt;a href="https://explorer.apothem.network/"&gt;https://explorer.apothem.network/&lt;/a&gt; I see I have 1000 XDC:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.xdc.dev/images/tp060_nTwipSK0MNqASVldzw3GrAEdWYr4isxbEzwg4/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L3NlNHBoaHlpdnQx/eHIzN2tjejM2LnBu/Zw" class="article-body-image-wrapper"&gt;&lt;img src="https://www.xdc.dev/images/tp060_nTwipSK0MNqASVldzw3GrAEdWYr4isxbEzwg4/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L3NlNHBoaHlpdnQx/eHIzN2tjejM2LnBu/Zw" alt="printscreen of balance on testnet explorer" width="638" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are other EVM networks configured and deployment script works for them. &lt;/p&gt;

&lt;p&gt;I printed out data&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(`deploying on ${hre.network.name} (${await hre.getChainId()})`);
console.log(`balanceOf(${deployer.address}): (${await hre.ethers.provider.getBalance(deployer.address)})`);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and I got:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;deploying on xdc_sandbox (51) 
balanceOf(***): (0)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;so for some reason hardhat does not see balance or RPC returns invalid state of the blockchain.&lt;/p&gt;

&lt;p&gt;packages:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    "@nomiclabs/hardhat-ethers": "~2.2.3",
    "@typechain/ethers-v5": "~10.1.0",
    "@typechain/hardhat": "~9.1.0",
    "ethers": "~5.7.2",
    "hardhat": "~2.14.0",
    "hardhat-deploy": "~0.11.44",
    "hardhat-deploy-ethers": "~0.3.0-beta.13",
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
